Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if the docker pull image speed is slow?

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the slow speed of docker pull image how to do, the article is very detailed, has a certain reference value, interested friends must read it!

Currently, Docker has an official image of China. For more information, please visit https://www.docker-cn.com/registry-mirror.

When in use, Docker China's official image acceleration can be accessed through registry.docker-cn.com. The mirror library contains only popular public images. Private mirrors still need to be pulled from the American Mirror Library.

You can pull directly from the accelerated address of the image using the following command:

$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 (see below), you will need to fully specify the name of the official image. For example, library/ubuntu, library/redis, library/nginx.

Use-- registry-mirror to configure the Docker daemon

You can configure the Docker daemon to use Docker official image acceleration by default. In this way, you can accelerate the pull of the image through the official image by default, without the need to specify registry.docker-cn.com for each pull.

You can pass in the-- registry-mirror parameter when the Docker daemon starts:

$docker-- registry-mirror= https://registry.docker-cn.com daemon

To preserve the changes permanently, you can modify the / etc/docker/daemon.json file and add the registry-mirrors key value.

{"registry-mirrors": ["https://registry.docker-cn.com"]}"

Restart Docker after modification and save to make the configuration effective.

Service docker restart

Note: you can also use Docker for Mac and Docker for Windows to set up.

These are all the contents of the article "what to do with slow docker pull mirroring". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report