备份原来的镜像地址
cp /etc/docker/daemon.json /etc/docker/daemon.json.bak
编辑新的
echo '{
"registry-mirrors": [
"https://docker.mirrors.sjtug.sjtu.edu.cn",
"https://docker.m.daocloud.io",
"https://docker.itelyou.cf",
"https://noohub.ru",
"https://docker.fxxk.dedyn.io",
"https://huecker.io",
"https://dockerhub.timeweb.cloud",
"https://registry.cn-hangzhou.aliyuncs.com"
]
}' > /etc/docker/daemon.json
重载+重启
systemctl daemon-reload
systemctl restart docker