docker in windows from entry to give up (1) - Installation

docker name heard for a long time, has not gone to study before, but now motionless requirements docker interview, it is still under study. Since my computer is win10 systems (poor, can not afford a mac), the installation process a variety of issues continue to pit father, once I wanted to give up, so that garbage windows do not really suitable for development, and ultimately persuade people to give up writing this installation docker windows tutorial.

installation method

Official website recommended docker for windows

I started to install the official website also went straight to the results to see system requirements:

Home Edition, I can not afford representation, I unbelievers online search elements of the installation tutorial, can be found by modifying the registry to change the version, avoid installation inspection , https://www.cnblogs.com/samwu/p/10360943.html
successful installation, the excitement of open docker for windows, but also to rub checks, modify the registry results again useless. . . .
Google Baidu once again found the latest version seems to be no solution, only to give up, unloaded.

DockerToolbox

And finally through a variety of Google Baidu to find a way in a home version that can be installed:
https://docs.docker.com/toolbox/toolbox_install_windows/

translates docker toolbox is a beast (like me, can not afford mac also can not afford the high version of the win) used, the official website is recommended that you upgrade your system (money).
Download and install, pit again:

  1. Since I installed docker for windows opened hyper-V, will not start now virtual box virtual machine, well the same old Google Baidu, https://blog.csdn.net/zitian246/article/details/86667293
  2. Since git installed, I canceled the git installation, start Docker Quickstart Terminal failure, lack shortcut:

    Right-attribute, modify the path of the target git

  3. Start Docker Quickstart Terminal has been downloaded boot2docker.iso fail, because it is downloaded from github slow, there are two solutions: 1. Copy the downloaded github address, download their own, and then copied to C:\Users\[你自己的电脑账号]\.docker\machine\cache; 2 directly copy your docker. files in the toolbox to the above address, and then start off net

Simple to use

After the installation is complete, there are three software on the desktop:

  1. Oracle VM VirtualBox: virtual machine, after opening which should have a default virtual machine, this is boot2docker.iso generated docker use the default linux virtual machine.
  2. Kitematic (Alpha): docker interface tools, server generally linux system, it is recommended to learn the command line use.
  3. Docker Quickstart Terminal: docker command-line tool.

The following command-line deployment hello-world example, using a simple docker.

  1. docker pull hello-worldTaken from a remote repository hello-world docker hub pull the mirror.
  2. docker imagesShow all local mirror.
  3. docker run hello-worldCreated hello-world image of the container and run.
  4. docker ps -aShow all containers, remove the container -a show running.

Note: Each execution docker run hello-worldwill create a container, if the container wants to create last run can be performed docker start containId, containId to docker ps -afind out the id.

to sum up

docker windows installed on the system rather cumbersome, can buy mac mac or buy it, after all windows system is divided into the Personal Edition and the server version, most people believe are personal computer version, not to act as a server, but the server version estimates can only be installed or castrated version of redis, nginx, all kinds of tears ah.

Guess you like

Origin www.cnblogs.com/wuweishuo/p/11111575.html