2016-03-11 239 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