2016-03-11 235 views
2

我已經創建了碼頭工人的私人寄存在我的本地"10.234.1.254" 如果我標記的圖像作爲10.234.1.254:5000/hello-world並嘗試從另一個VM推到註冊表中正在運行的虛擬機 - 失敗下面的錯誤不能推泊塢窗圖像泊塢窗私有註冊

The push refers to a repository [10.234.1.254:5000/hello-world] 
unable to ping registry endpoint https://10.234.1.254:5000/v0/ 
v2 ping attempt failed with error: Get https://10.234.1.254:5000/v2/: EOF 
v1 ping attempt failed with error: Get https://10.234.1.254:5000/v1/_ping: EOF 

我甚至試圖把DOCKER_OPTS="--insecure-registry 10.234.1.254:5000"/etc/default/docker並重新啓動搬運工服務。但是我仍然得到同樣的錯誤。

我如何使用私人碼頭註冊表的IP地址和端口來標記圖像並推送它?

+0

你運行'泊塢窗登錄10.234.1.254:5000'第一? – BMW

+0

@BMW當我從docker客戶端運行登錄命令時,我得到:來自守護進程的錯誤響應:無效的註冊表端點https://10.234.1.254:5000/v0/:無法ping通註冊表端點https://10.234.1.254:5000/v0/ v2 ping嘗試失敗,出現錯誤:獲取https://10.234.1.254:5000/v2/:EOF – sravis

+0

是docker客戶端和docker註冊表服務器上不同或相同的docker版本?本地的 – BMW

回答

0

在MacOSX上遇到了同樣的問題,該碼頭工人的版本是:

➜ registry docker version 
Client: 
Version:  17.11.0-ce-rc4 
API version: 1.34 
Go version: go1.8.4 
Git commit: 587f1f0 
Built:  Thu Nov 16 01:17:06 2017 
OS/Arch:  darwin/amd64 

Server: 
Version:  17.11.0-ce-rc4 
API version: 1.34 (minimum version 1.12) 
Go version: go1.8.5 
Git commit: 587f1f0 
Built:  Thu Nov 16 01:43:23 2017 
OS/Arch:  linux/amd64 
Experimental: true 

➜ registry docker push 10.168.32.26:5000/metric-collector:dev 
The push refers to repository [10.168.32.26:5000/metric-collector] 
Get http://10.168.32.26:5000/v2/: EOF 
➜ registry curl http://10.168.32.26:5000/v2/ 
curl: (52) Empty reply from server 
➜ registry docker login 10.168.32.26:5000 
Username: 1 
Password: 
Error response from daemon: Get http://10.168.32.26:5000/v2/: EOF