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

Centos7's method of changing docker Warehouse

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

Share

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

We know that in most cases, after we install docker, we will start docker directly, which is generally not a problem, but like github, if we use an official warehouse and the server is abroad, it is not very stable because of qiang, so we can change the warehouse to domestic one, such as Ali's. Here's how to change the configuration file.

First go to the path / lib/systemd/system, directly vim docker.service to edit the configuration file, then find the ExecStart tab, and copy the accelerator address of Aliyun to the screenshot.

-- registry-mirror= https://ab1p8qlh.mirror.aliyu...\

Each Aliyun account has its own accelerator address. See the screenshot.

Reload the configuration file after the file is configured

Systemctl daemon-reload

Start docker

Systemctl start docker

View docker status

Systemctl status docker

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.

Share To

Servers

Wechat

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

12
Report