Get the App
SLTechnology News&Howtos  ›  Servers  › 

Image acceleration of Docker

Shulou Source: shulou.com Published: 2022-06-02 22:40:30 09月22日 Update

In order to solve the problem of slow acquisition of dockers official images

The solution is as follows:

1. Log in to Aliyun website (https://cr.console.aliyun.com/)

2. Enter the user name and password (no registration can be made)

3. Click "Mirror Accelerator"-> "your exclusive Accelerator address" after logging in successfully.

Mkdir-p / etc/docker / / create a docker configuration folder

Cd / etc/docker

Vi daemon.json / / modify daemon configuration file

Add the following

{

"registry-mirrors": ["https://qtid6917.mirror.aliyuncs.com"]"

}

Systemctl daemon-reload / / Reload daemon file

Systemctl restart docker / / restart the container

Through the above methods, the problem of slow downloading official images in docker containers can be solved perfectly.

Tags: Image file accelerator official container method question login configuration success content address password folder user user name website Ali input Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Microsoft MySQL Shulou Tech Info Huawei