系统信息: RHEL 7.1(全新安装) Docker 1.6.2 我们使用Red Hat提供的“奖励”DVD中的Docker rpm。
问题: 当我通过docker拉取镜像时,只有在Red Hat仓库上才能正常工作。
# docker pull openshift3/mysql-55-rhel7
Trying to pull repository registry.access.redhat.com/openshift3/mysql-55-rhel7
...
bb8bf2124de9: Download complete
65de4a13fc7c: Download complete
85400654aa47: Download complete
c537da9944e0: Download complete
6d97b1e161bb: Download complete
0d0dc8d923d6: Download complete
e4ba106b746b: Download complete
Status: Downloaded newer image for registry.access.redhat.com/openshift3/mysql-55-rhel7:latest
当我从Docker仓库中拉取镜像时,它失败了。但是 - 在我看来真的很奇怪 - 出现了不同的错误。
首先我拉取了 httpd 镜像。
# docker pull httpd
Trying to pull repository registry.access.redhat.com/httpd ... not found latest: Pulling from docker.io/httpd
64e5325c0d9d: Pulling fs layer
bf84c1d84a8f: Download complete
6c1a7f5286ab: Download complete
…
ee4d515e8896: Download complete
de94ed779434: Download complete
de94ed779434: **Error pulling image (latest) from docker.io/httpd, ApplyLayer exit status 1 stdout: stderr: unexpected EOF**
FATA[0040] Error pulling image (latest) from docker.io/httpd, ApplyLayer exit status 1 stdout: stderr: unexpected EOF
然而,拉取hello-world会产生以下结果
# docker pull hello-world
Trying to pull repository registry.access.redhat.com/hello-world ... not found
latest: Pulling from docker.io/hello-world
a8219747be10: Pulling fs layer
a8219747be10: Error pulling dependent layers
91c95931e552: Error pulling image (latest) from docker.io/hello-world, Server error: Status 403 while fetching image layer (a821974FATA[0010] Error pulling image (latest) from docker.io/hello-world, Server error: Status 403 while fetching image layer (a8219747be10611d65b7c693f48e7222c0bf54b5df8467d3f99003611afa1fd8)
我在企业网络上,按照这篇博客中关于代理和证书的方法进行了设置,使其成功运行。
https://*.cloudfront.net/registry-v2/docker/registry/v2/*
添加到代理规则中。Docker 存储镜像的其他 URL 是否还有? - Koen Vingerhoets