我有一个码头注册中心,目前正在启动和运行。我有两个不同的越野车主播码头。一个是我自己创建的,然后手动安装了码头。另一个是波什做的。现在,这两个VM都能够将图像推送到我在<IP>:<PORT>的私人注册中心。手动创建的VM能够提取注册表中存在的任何图像。相比之下,BOSH只能拉出它向上推的图像。
当拉一个图像时,它被推了,我们得到了这样的输出
<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 foundBOSH VM“找不到”图像是没有意义的,因为它清楚地看到了用于创建我想要的图像的层。但我不知道这是不是什么奇怪的验证错误。
BOSH中的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>发布于 2015-07-24 22:52:28
是我的错。注册表包含使用docker1.7.0构建的映像,但是我的BOSH已经安装了docker1.5.0。因此,BOSH没有识别注册表包含的图像格式(我相信),因此报告了我想要的图像没有找到错误。升级docker二进制文件和spec文件,然后重新部署新版本修复了错误。
https://stackoverflow.com/questions/31620468
复制相似问题