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

The method of Docker configuring domestic Accelerator to accelerate Image download

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

Share

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

Introduction

Due to network reasons, when we are in pull Image, downloading from Docker Hub will be very slow. Therefore, domestic Docker enthusiasts have added some domestic images (mirror) to facilitate their use.

Configure Ali Cloud Accelerator 1. Log in to Ali developer platform: https://dev.aliyun.com/search.html2. Click "create my Container Image"

3. After registering / logging in, enter Docker Image Repository (https://cr.console.aliyun.com/#/imageList)) and select Accelerator Tab

As you can see here, the system has generated a dedicated accelerator address for us: https://xxxxx.mirror.aliyuncs.com

4. According to individual needs, choose the OS running Docker, and modify the Docker configuration file as required.

My OS here is CentOS, and the docker version is 1.12, so the steps are as follows:

Modify the configuration file: vim usr/lib/systemd/system/docker.service

Add the red part to "ExecStart" ExecStart=/usr/bin/dockerd-- registry-mirror=

Save Fil

Reload configuration: $systemctl daemon-reload

Restart the service: $service docker restart

Verification

Pull a MySQL on Docker client to see how fast it is.

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