簡體   English   中英

Docker Registry Pull錯誤

[英]Docker Registry Pull error

我有一個目前正在運行的Docker注冊表。 我有兩個托管docker的不同VM。 我創建了一個並手動安裝了docker。 另一個是BOSH制造的。 現在,兩個VM都可以通過<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“找不到”圖像是沒有意義的,因為它清楚地看到了用於創建所需圖像的圖層。 但是我不知道這是否是一些奇怪的驗證錯誤。

ps -ef | grep docker的輸出ps -ef | grep docker 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 1.7.0構建的映像,但是我的BOSH VM已安裝docker 1.5.0。 因此,BOSH VM無法識別注冊表包含的圖像格式(我相信),因此報告了所需圖像的未找到錯誤。 升級docker二進制文件和spec文件,然后重新部署新版本修復了該錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM