Docker国内镜像加速

镜像加速

mkdir -p /etc/docker
cat > /etc/docker/daemon.json << EOF
{
    "registry-mirrors": [
        "https://dockerproxy.com",
        "https://mirror.baidubce.com",
        "https://docker.m.daocloud.io",
        "https://docker.nju.edu.cn",
        "https://docker.mirrors.sjtug.sjtu.edu.cn"
    ]
}
EOF

systemctl reload docker
docker info
 
# 测速:
time docker pull centos:latest
  • 网易:https://hub-mirror.c.163.com/

  • 阿里云:https://<你的ID>.mirror.aliyuncs.com

  • 七牛云:https://reg-mirror.qiniu.com

  • Docker中国官方:https://registry.docker-cn.com

  • cloud:http://{your_id}.m.daocloud.io

  • 注:阿里云跟daocloud镜像加速需要注册账号

Last updated