Research Docker for a while, of course, my main use of the environment or Linux, it is really convenient.
But there are a lot of friends who want to use Windows to work and learn, so here's how to quickly start Docker learning and experience in Windows.
Note: Because Docker native only supports Linux, users who use Macs also need to take some additional configuration procedures as Windows users do.
Note: Because Docker only supports 64-bit CPUs, your machine must be 64-bit (and enable virtualization support in the BIOS), Windows 7 or later
1. Using Docker Toolbox for Windows
Https://www.docker.com/products/docker-toolbox
In fact, this toolbox contains the VirtualBox virtual machine software, as well as a basic image (CentOS), and then use the Docker-machine tool to create and manage the virtual machine, the virtual machine is loaded with Docker Components such as engine and Docker compose.
For complete steps, refer to https://docs.docker.com/windows/step_one/
2. Use Docker-machine to configure yourself
To get a better idea of how Docker Toolbox works, we can actually run the Docker-machine component to create and manage virtual machines on our own. Of course the prerequisites are the same: 64-bit, enable virtualization. The difference is that you need to install the VirtualBox manually.
First, you need to install Git
Then, start git bash and run the following command
$ IF [[!-d ' $HOME/bin]]; Then Mkdir-p "$HOME/bin"; Fi && \ curl-l https://github.com/docker/machine/releases/download/v0.6.0/docker-machine-Windows-x86_64. EXE > "$HOME/bin/docker-machine.exe" && \ chmod +x "$HOME/bin/docker-machine.exe"
Then, create the virtual machine with the Docker-machine creation command
The status of all virtual machines can be seen through the docker-machine LS command
You can log in by docker-machine SSH command
And then the operation inside is the standard Docker operation.
In fact, this virtual machine can be clearly seen in VirtualBox
Docker-machine, there are other orders.
Docker-machine can also create virtual machines directly in the cloud, which is equivalent to a simple PAAs tool, which may not be accurate, but it does make it easier to develop operations by invoking resources from the underlying IAAS layer.
Start Docker learning and experience in a Windows environment