In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Visiting the official image of Docker in China has always been as slow as a snail. Tripartite accelerators are configured to quickly access Docker official images. Currently, tripartite accelerators are commonly used: NetEase, USTC, DaoCloud, and Aliyun.
Now Docker has officially launched a mirror acceleration service for China. Through the acceleration of Docker official images, domestic users can access the most popular Docker images with faster download speed and greater stability.
How to use official mirrors
Docker China's official image acceleration can be accessed through registry.docker-cn.com. At present, the mirror library only contains popular public images, while private images still need to be pulled from the US mirror library.
You can use the following command to pull directly from the accelerated address of the image.
$docker pull registry.docker-cn.com/myname/myrepo:mytag
For example:
$docker pull registry.docker-cn.com/library/ubuntu:16.04
Note: unless you modify the-registry-mirror parameter of the Docker daemon, you will need to fully specify the name of the official image. For example, library/ubuntu, library/redis, library/nginx.
Configure an accelerator for the Docker daemon
If you want to configure the Docker daemon, the Docker official image acceleration is used by default. You can configure the-- registry-mirror parameter when the Docker daemon starts.
Start Docker from the command line
$docker-- registry-mirror= https://registry.docker-cn.com daemon
Start Docker from the configuration file
Docker version 1.12 or higher
Modify the / etc/docker/daemon.json file and add the registry-mirrors key.
$vim / etc/docker/daemon.json {"registry-mirrors": ["https://registry.docker-cn.com"]}"
Docker version is between 1.8and 1.11,
You can find the Docker configuration file and join DOCKER_OPTS in the configuration file. Different Linux distributions have different configuration paths. Take Ubuntu as an example.
A) Ubuntu version 14.04
Modify the / etc/default/docker file by adding the following parameters.
$vim / etc/default/dockerDOCKER_OPTS= "--registry-mirror= https://registry.docker-cn.com"
B) Ubuntu versions later than 15.04
Systemd management service is used by default after Ubuntu 15.04, and the accelerator is configured in a slightly different way. Add startup parameters to the Systemd service file.
$vim / lib/systemd/system/ docker.service [service] ExecStart=/usr/bin/docker-d-H fd://-- registry-mirror= https://registry.docker-cn.com
After the changes are saved, restart Docker to make the configuration effective.
$service docker restart
After configuring the accelerator for the Docker daemon, you can accelerate the pull of the image through the official image by default without specifying registry.docker-cn.com each time it is pulled.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.