简体   繁体   English

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

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

I have created docker private register in my local "10.234.1.254" If i tag an image as 10.234.1.254:5000/hello-world and try to push it from another vm to the vm where registry is running - IT FAILS with below error 我已经在本地"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

I even tried putting DOCKER_OPTS="--insecure-registry 10.234.1.254:5000" in /etc/default/docker and restart docker service. 我什至尝试将DOCKER_OPTS="--insecure-registry 10.234.1.254:5000"放在/etc/default/docker然后重新启动docker服务。 But still i get the same error. 但是我仍然遇到同样的错误。

How do i tag an image using IP address and port of the private docker registry and push it? 如何使用私有Docker注册表的IP地址和端口标记映像并将其推送?

met the same issue at macOSX, the docker version is: 在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