How to modify docker Mirror Source by Linux
Most people do not understand the knowledge points of this article "Linux how to modify docker Mirror Source", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "Linux how to modify docker Mirror Source" article.
Several mirror sources available for personal testing in China:
Docker official China: https://registry.docker-cn.com NetEase: http://hub-mirror.c.163.com University of Science and Technology of China: https://docker.mirrors.ustc.edu.cn Aliyun: https://y0qd3iq.mirror.aliyuncs.com adds the image source configuration file / etc/docker/daemon.json of Docker. If the image is not configured, the file will not be saved by default. Add the following content to it:
{"registry-mirrors": ["https://y0qd3iq.mirror.aliyuncs.com"]} where URL is the specified mirror source, which can be set to any of the four mirror sources mentioned above.
Then restart the Docker service:
Service docker restart then checks to see if the configuration takes effect with the following command:
Docker info | grep Mirrors-A 1 can see the following output:
Registry Mirrors: https://y0qd3iq.mirror.aliyuncs.com/ means that the image is configured successfully, and then perform the docker pull operation, which will be quick.
The above is about the content of this article on "how Linux modifies docker Mirror Source". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more related knowledge, please pay attention to the industry information channel.