Docker Win7 Accelerator configuration
- Open Kitematic (Alpha)
- Click the lower left corner of the DOCKER CLI
- 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
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.
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