Windows containers Adventure: accelerating



After installing docker, you need to adjust docker settings to adapt to domestic network conditions. The setup steps for Windows client and server are different and need to be introduced separately.

Windows client

Windows 10 professional

Since docker for windows can be installed in Windows 10 professional edition, proxy server, non secure image warehouse and image warehouse acceleration settings can be operated in the settings interface in docker for windows. These three settings can directly or indirectly achieve the effect of image download acceleration. If the proxy server is not an option, you can use the image acceleration service provided by docker or daocloud. See the following address for details.……

Windows containers Adventure: accelerating

Windows containers Adventure: accelerating

Windows 8.1 and windows 10 home edition

Since docker toolbox can only be installed on Windows 8.1 and windows 10 home edition, the configuration is slightly complicated. Here, the configuration of the image accelerator is described as an example.

  1. Execute docker machine start default to start the virtual machine created by docker toolbox
  2. Execute docker machine SSH default to enter the virtual machine
  3. Execute sudo VI /var/lib/boot2docker/profile and add –insert-registry, save the settings after setting.
  4. Execute sudo /etc/init D/docker restart restart the docker service

Then you can enjoy the image acceleration download experience brought by image acceleration.

Windows containers Adventure: accelerating

Windows Server

At present, the accelerator does not accelerate the downloading of windows related container images very well. We can set up an agent to achieve this.

  1. Execute PowerShell from the command prompt to start PowerShell
  2. Execute the following command to set the environment variables.
[Environment]::SetEnvironmentVariable("HTTP_PROXY", "", [EnvironmentVariableTarget]::Machine)
[Environment]::SetEnvironmentVariable("HTTPS_PROXY", "", [EnvironmentVariableTarget]::Machine)

It should be noted that the environment variables take effect at the computer level rather than the user level, so as to ensure that the docker service can normally use the environment variables after the next restart.

  1. Execute restart service -name docker to restart docker service
  2. Run docker pull microsoft/nanoserver to confirm the acceleration effect

Windows containers Adventure: accelerating


Due to the domestic network, you need to set up a proxy server or image acceleration to download the existing images in the public warehouse. After downloading, you can use the docker Save command to distribute them in the local environment.