簡體   English   中英

無法將Docker映像推送到Docker私有注冊表

[英]Not able to push docker images to docker private registry

我已經在本地"10.234.1.254"創建了docker私有注冊,如果我將映像標記為10.234.1.254:5000/hello-world並嘗試將其從另一個虛擬機推送到運行注冊表的虛擬機-IT失敗,並出現以下錯誤

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然后重新啟動docker服務。 但是我仍然遇到同樣的錯誤。

如何使用私有Docker注冊表的IP地址和端口標記映像並將其推送?

在macOSX上遇到了相同的問題,docker版本是:

➜  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

暫無
暫無

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

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