Start Docker learning and experience in a Windows environment

Source: Internet
Author: User
Tags docker compose docker toolbox

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.