Docker download image and replace default source

1. Common sources

USTC docker source: https://mirrors.ustc.edu.cn/docker-ce/

Use reference documentation: http://mirrors.ustc.edu.cn/help/docker-ce.html

2. Alibaba Cloud

Alibaba Cloud docker homepage https://dev.aliyun.com/

Click to log in and select the mirror acceleration area, copy the connection

image

Add in /etc/docker/daemon.json

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

Or add it in /usr/lib/systemd/system/docker.service

--registry-mirrorh=https://xxxx.mirror.aliyuncs.com

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325513456&siteId=291194637