无法将docker映像推送到docker私有注册表

无法将docker映像推送到docker私有注册表,docker,docker-registry,Docker,Docker Registry,我已在本地“10.234.1.254” 如果我将一个映像标记为10.234.1.254:5000/hello world,并尝试将其从另一个vm推送到运行注册表的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 wit

我已在本地
“10.234.1.254”
如果我将一个映像标记为
10.234.1.254:5000/hello world
,并尝试将其从另一个vm推送到运行注册表的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\u OPTS=“--unsecure 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

您是否先运行了docker login 10.234.1.254:5000?@BMW当我从docker客户端运行login命令时,我从守护程序获得:错误响应:注册表端点无效:无法ping注册表端点v2 ping尝试失败,错误为:get:EOFare docker客户端和docker注册表服务器上的docker版本不同或相同?本地,您应该能够使用localhost:
docker pushhttp://localhost:5000/hello-世界
。但是从另一个虚拟机,您需要在两个虚拟机上都使用1.10.3版