docker pull很慢

有时我们在服务器上执行docker pull 拉取镜像时,会很慢,那么更改一下docker pull的源,速度就快了

  • vi /etc/docker/daemon.json
    将以下写入文件中
{

    "registry-mirrors":[

        "https://kfwkfulq.mirror.aliyuncs.com",

        "https://2lqq34jg.mirror.aliyuncs.com",

        "https://pee6w651.mirror.aliyuncs.com",

        "http://hub-mirror.c.163.com",

        "https://docker.mirrors.ustc.edu.cn",

        "https://registry.docker-cn.com"

    ]

}
  • systemctl daemon-reload
  • systemctl restart docker

你可能感兴趣的:(docker)