Docker Win7 Accelerator configuration

Source: Internet
Author: User
Tags virtual environment docker run

Docker Win7 Accelerator configuration
    1. Open Kitematic (Alpha)
    2. Click the lower left corner of the DOCKER CLI
    3. Input
docker-machine ssh default sudo sed -i "s|EXTRA_ARGS='|EXTRA_ARGS='--registry-mirror=【此处为你的加速地址】 |g" /var/lib/boot2docker/profileexitdocker-machine restart default

This allows you to restart Docker and then use the domestic image to speed up the download.

Win7 the access address of the Docker container and how SSH connects to the Docker virtual environment
    1. Installing Docker under Win7 assigns an IP to the virtual environment where Docker resides, and later, if you specify a mapping port when you launch the Docker container, you can access the Docker container's application through this IP.

    2. With Docker-machine env This command can view the assigned IP, one line of export docker_host= "tcp://192.168.99.100:2376" 2376 is DOCKER's Open API listening port, regardless. 192.168.99.100 is the assigned IP.

# 例如,我在docker中启动了nginx,命令如下 docker run -p 80:80 --name mynginx -d nginx   

So I can access http://192.168.99.100:80 through the browser to see if Nginx has been started.

Using Docker Quickstart terminal to access a Docker virtual environment in a Windows environment feels or is not very convenient to use SSH remote login.

The default user name and password are: Docker/tcuser

Docker Win7 Accelerator configuration

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.