etgsd 发表于 2016-8-19 09:33:24

docker pull centos出错

现象描述# docker pull centos
latest: Pulling from centos

3690474eb5b4: Pulling fs layer
b200b2d33d98: Pulling fs layer
3fbd5972aaac: Pulling fs layer
Pulling repository centoslayer
Repository not found


下载镜像时出错,不是Repository not found就是timeout,尝试多次仍未解决。

说明:系统为centos 6.7
尝试1 于是yum update升级了一下系统,多次尝试后仍是报错。


2 于是检查了一下/etc/yum.repo.d/发现yum update时生成了好多repo文件(本来使用的是阿里的yum源),于是把刚才生成的repo移除后,执行
# docker pull centos:latest
latest: Pulling from centos
3690474eb5b4: Pull complete
b200b2d33d98: Downloading [========>                                          ] 11.35 MB/70.58 MB
3fbd5972aaac: Download complete
d83a55af4e75: Download complete
d83a55af4e75: Pulling fs layer

虽然像蜗牛一样缓慢,但是还是没有报错。

疑问    也许执行docker pull centos:latest会依赖yum源,毕竟阿里的比系统的yum源快得多。

    问题虽然是解决了,但真正的原因是不是在这,我不知道。
    分享出来和大家一起探讨。







页: [1]
查看完整版本: docker pull centos出错