$ sudo mkdir -p /etc/docker
$ sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://xxxx.mirror.aliyuncs.com",
"https://docker.mirrors.ustc.edu.cn",
"http://f1361db2.m.daocloud.io",
]
}
EOF
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
# 查看批改后的配置
$ sudo docker info
镜像加速器 |
镜像加速器地址 |
DaoCloud 镜像站 |
http://f1361db2.m.daocloud.io |
Azure 中国镜像 |
https://dockerhub.azk8s.cn |
科大镜像站 |
https://docker.mirrors.ustc.edu.cn |
阿里云 |
https://<your_code>.mirror.aliyuncs.com |
七牛云 |
https://reg-mirror.qiniu.com |
网易云 |
https://hub-mirror.c.163.com |
腾讯云 |
https://mirror.ccs.tencentyun.com |