【问题标题】:Docker Registry Pull errorDocker Registry 拉取错误
【发布时间】:2015-07-28 00:53:54
【问题描述】:

我有一个当前正在运行的 docker 注册表。我有两个托管 docker 的不同虚拟机。一个是我自己创建并手动安装的 docker。另一个是BOSH制造的。现在两个虚拟机都可以将图像推送到我的私有注册表<IP>:<PORT>。手动创建的 VM 能够提取注册表中存在的任何图像。相比之下,BOSH VM 只能拉取它推送的镜像。

当拉动一个图像时,我们会得到这样的输出

<IP>:<PORT>/test/scratch:1: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.

但是,当拉动任何其他图像(我知道存在并且可以拉动)时,我会得到如下输出:

docker pull <IP>:<PORT>/<IMAGE_PREFIX>/centos:6
6: Pulling from <IP>:<PORT>/<IMAGE_PREFIX>/centos
f1b10cd84249: Pulling fs layer
b9aeeaeb5e17: Pulling fs layer
f577f0104d9f: Pulling fs layer
25026cb4e110: Pulling fs layer
7935ccc5687c: Pulling fs layer
b65d7f315ddb: Pulling fs layer
0995c5f045e3: Pulling fs layer
8383060ffe2b: Pulling fs layer
4e532e3dd806: Pulling fs layer
13012e69774f: Pulling fs layer
c0720f93f003: Pulling fs layer
1af9b43df076: Pulling fs layer
961ad276c59a: Download complete
Pulling repository <IP>:<PORT>/<IMAGE_PREFIX>/centos
FATA[0000] Error: image <IMAGE_PREFIX>/centos:6 not found

BOSH VM“找不到”图像是没有意义的,因为它清楚地看到了用于创建我想要的图像的层。但我不知道这是否是一些奇怪的验证错误。

BOSH VM 中ps -ef | grep docker 的输出显示:

docker --daemon --api-enable-cors=false --debug=false --group vcap --graph 
/var/vcap/store/docker/docker --host unix:///var/run/docker.sock 
--insecure-registry <IP>:<PORT> --bip 192.168.227.1/24 --icc=true --ip-forward=true 
--iptables=true --iptables=true --pidfile /var/vcap/sys/run/docker/docker.pid 
--selinux-enabled=false --host tcp://127.0.0.1:4243

我手动创建的 VM 的输出显示:

/usr/bin/docker -d --bip 192.168.227.1/24 --insecure-registry <IP>:<PORT>

【问题讨论】:

    标签: docker docker-registry


    【解决方案1】:

    这是我的错误。注册表包含使用 docker 1.7.0 构建的映像,但是我的 BOSH VM 安装了 docker 1.5.0。因此,BOSH VM 无法识别注册表包含的图像格式(我相信),因此报告了我想要的图像的未找到错误。升级 docker 二进制和规范文件,然后重新部署新版本修复了错误。

    【讨论】:

      猜你喜欢
      • 2019-02-14
      • 2016-08-20
      • 1970-01-01
      • 2023-02-10
      • 2018-05-24
      • 2021-06-02
      • 1970-01-01
      • 2016-10-22
      • 2017-07-02
      相关资源
      最近更新 更多