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

Configure docker Mirror acceleration

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Leader: because the docker-hub image warehouse site is abroad, access is very slow. In order to speed up pull images, d provides acceleration sites in China.

Such as: https://registry.docker-cn.com

And the acceleration site provided by Aliyun (everyone's domain name of the acceleration site is different. You can go to Aliyun Container Image Service to check your own image acceleration address)

1. Create a configuration file for / etc/docker/daemon.json

[root@env-lab ~] # mkdir / etc/docker/

[root@env-lab docker] # vi daemon.json

2. Add multiple accelerator addresses to the daemon.json configuration file. Each address is separated by a comma, and the docker process can be restarted.

{

"registry-mirrors": ["https://registry.docker-cn.com", https://9zh8kwqg.mirror.aliyuncs.com"]"

}

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