The configuration process for installing the Docker window under Windows system _docker

Source: Internet
Author: User
Tags eval docker hub docker run oracle vm virtualbox docker toolbox docker machine vm virtualbox

Objective

Currently, the best support for Docker is the Ubuntu system, Docker does not support running on Windows, and must use Docker-machine. Docker provides toolbox for installing Docker on Windows and Mac platforms.

The Toolbox includes:

Docker Machine

Docker Engine

Kitematic

Docker command line run environment

Oracle VM VirtualBox

Before you install, you need to check that the settings for virtualization in the BIOS are turned on, refer to this page

1, download the installation files

Https://www.docker.com/toolbox

2, double-click the installation file to install

3, Operationdocker run hello-world

The following problem occurs at run time

Post http://127.0.0.1:2375/v1.20/containers/create:dial TCP 127.0.0.1:2375:connectex Tcp:no connection could be made to be Cause the target machine actively refused it.
 * Are you trying to connect to a tls-enabled daemon without TLS?
 * Is your Docker daemon up and running?

Resolved as follows:

Docker-machine regenerate-certs default
docker-machine restart default

Show Environment variables:

 $ docker-machine env default--shell sh
  export docker_tls_verify= "1
  export docker_host=" tcp:// 192.168.99.100:2376 "
  export docker_cert_path=" C:\Users\apex\.docker\machine\machines\default "
  Export Docker_machine_name= "Default"
  # Run This command to configure your shell:
  # eval $ (E:\04_Program files\docker _toolbox\docker toolbox\docker-machine.exe env default) "

To set environment variables:

Eval "$ (docker-machine env default--shell sh)"

Run again:

$ docker Run Hello-world unable to find image ' hello-world:latest ' locally pulling repository LD af340544ed62:pulling Image (latest) from Docker.io/library/hello-world af340544ed62:pulling image (latest) from Docke
R.io/library/hello-world, endpoint:https://registry-1.docker.io/v1/af340544ed62:pulling dependent layers 535020c3e8ad:pulling metadata 535020c3e8ad:pulling FS layer 535020c3e8ad:download complete af340544ed62:pulling Metada  TA af340544ed62:pulling fs Layer af340544ed62:download complete Af340544ed62:download complete status:downloaded
Image for Hello-world:latest the Hello from Docker.
This message shows the your installation appears to be working correctly.
 To generate this message, Docker took the following Steps:1 Docker client contacted the Docker.
 2. The Docker daemon pulled the "Hello-world" image from the Docker Hub. 3. The Docker daemon created a new container from this image which runs the executable that PROduces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something more ambitious, you can run a Ubuntu container with: $ docker run-it Ubuntu bash Share images, automat e workflows, and more with a free Docker Hub account:https://hub.docker.com for more examples and ideas, visit:https:/ /docs.docker.com/userguide/

Configure accelerator:

Docker-machine ssh default
sudo sed-i "s| Extra_args= ' | extra_args= '--registry-mirror=http://efa65984.m.daocloud.io |g '/var/lib/boot2docker/profile
exit
Docker-machine Restart Default

Attention

Docker user's password is Tcuser

Can be used to transfer files WINSCP

Summarize

The above is in the Windows System Installation Docker window configuration process, the article gives detailed steps to introduce, hope for everyone's study or work to bring certain help, if there is doubt you can message exchange.

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.