Docker set domestic mirror source

Docker image acceleration

When pulling images from DockerHub in China, sometimes network problems may occur. At this time, you can configure domestic image acceleration to download. Docker official and many domestic cloud service providers provide domestic accelerator services, for example as follows:

  • HKUST mirror: https://docker.mirrors.ustc.edu.cn/
  • Netease: https://hub-mirror.c.163.com/
  • Alibaba Cloud: https://<your ID>.mirror.aliyuncs.com
  • Qiniu Cloud Accelerator: https://reg-mirror.qiniu.com

Individual users don't have to hesitate to choose a Docker data source, and directly use Alibaba Cloud's

The steps are as follows :

1. Aliyun mirror acquisition address: https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors, after logging in, select the mirror accelerator on the left menu to see your exclusive address

2. Modify the configuration file

Alibaba Cloud provides operation documents for various platforms, just follow the documents to operate

Some can be modified graphically, and some need to modify the configuration file

3. Restart docker

service docker restart

4. Check whether it is successful

Execute the docker info command to check whether the configuration is successful, as shown in the figure below, my configuration is successful

docker info

Portal: nanny Spring5 source code analysis

Welcome to exchange technology and work life with the author

contact author

Guess you like

Origin blog.csdn.net/yuchangyuan5237/article/details/130866494