目录

docker-pull-镜像问题

docker pull 镜像问题

问题一:pull镜像报错:time out

https://i-blog.csdnimg.cn/direct/0a58d7f357544742af7c97be009d8bd5.png

分析:源问题,网络不稳定,更换加速源,地址:/etc/docker/daemon.json

解决:更换地址,如下,然后敲:docker daemon-reload && docker restart docker

{
    "registry-mirrors": [
        "https://docker.m.daocloud.io/",
        "https://huecker.io/",
        "https://dockerhub.timeweb.cloud",
        "https://noohub.ru/",
        "https://dockerproxy.com",
        "https://docker.mirrors.ustc.edu.cn",
        "https://docker.nju.edu.cn",
        "https://xx4bwyg2.mirror.aliyuncs.com",
        "http://f1361db2.m.daocloud.io",
        "https://registry.docker-cn.com",
        "http://hub-mirror.c.163.com"
    ]
}

问题二:重启docker报错

https://i-blog.csdnimg.cn/direct/dc8cf44b4ef347aa955be6d7d8894ed6.png

分析:报错为配置文件内容有错误。注意配置文件编写时的标点符号。