https://cloud.tencent.com/developer/article/1171376
Docker中国区官方镜像:
https://registry.docker-cn.com
网易:
http://hub-mirror.c.163.com
中国科技大学:
https://docker.mirrors.ustc.edu.cn
#清华源
https://docker.mirrors.ustc.edu.cn
阿里云:
https://cr.console.aliyun.com/
#腾讯云 https://cloud.tencent.com/document/product/1207/45596
https://mirror.ccs.tencentyun.com
#百度云
https://mirror.baidubce.com
daemon.json
{
"registry-mirrors" : [
"https://hub-mirror.c.163.com",
"https://registry.aliyuncs.com",
"https://registry.docker-cn.com",
"https://docker.mirrors.ustc.edu.cn"
]
}
https://mirrors.ustc.edu.cn/help/docker-ce.html
curl -fsSL https://get.docker.com -o get-docker.sh
sudo DOWNLOAD_URL=https://mirrors.ustc.edu.cn/docker-ce sh get-docker.sh
cat <<EOL>/etc/docker/daemon.json
{
"registry-mirrors": [
"https://mirror.ccs.tencentyun.com"
],
"log-driver":"json-file",
"log-opts": {"max-size":"10m", "max-file":"10"}
}
EOL
systemctl daemon-reload