修改以下代码源地址,回车运行即可
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["源地址链接"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
源地址推荐:
docker官网中国区镜像
https://registry.docker-cn.com
网易163
http://hub-mirror.c.163.com
USTC镜像加速 (推荐)
https://docker.mirrors.ustc.edu.cn
daocloud镜像 需注册
http://{your_id}.m.daocloud.io
alicloud 速度快,但需要注册,注册地址https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
https://{your_id}.mirror.aliyuncs.com