Docker 换国内源

sudo vim /etc/docker/daemon.json

替换以下内容

{
    "registry-mirrors": [
        "https://kfwkfulq.mirror.aliyuncs.com",
        "https://2lqq34jg.mirror.aliyuncs.com",
        "https://pee6w651.mirror.aliyuncs.com",
        "https://registry.docker-cn.com",
        "http://hub-mirror.c.163.com"
    ],
    "dns": ["8.8.8.8","8.8.4.4"]
}

然后重启docker

service docker restart

你可能感兴趣的:(Docker 换国内源)