[root@docker ~]# docker run -d -p 5000:5000 --name registry registry 12b577afb87d983e511a88b5ce1d750a3072ab433ca668617387fbb65abbd358 [root@docker ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 12b577afb87d registry "docker-registry" 2 seconds ago Up 1 seconds 0.0.0.0:5000->5000/tcp registry [root@docker ~]# docker-ip registry 172.17.0.2 [root@docker ~]# docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE dbdata latest fcdb94b55140 41 hours ago 196.6 MB centos-custom latest 70ea06b49fcc 45 hours ago 257.5 MB registry latest 361d3fdce777 3 days ago 422.8 MB 172.17.0.2:5000/test latest c8a648134623 2 weeks ago 196.6 MB centos centos7 c8a648134623 2 weeks ago 196.6 MB centos latest c8a648134623 2 weeks ago 196.6 MB hello-world latest 975b84d108f1 12 weeks ago 960 B [root@docker ~]# docker push 172.17.0.2:5000/test The push refers to a repository [172.17.0.2:5000/test] (len: 1) unable to ping registry endpoint https://172.17.0.2:5000/v0/ v2 ping attempt failed with error: Get https://172.17.0.2:5000/v2/: EOF v1 ping attempt failed with error: Get https://172.17.0.2:5000/v1/_ping: EOF [root@docker ~]#
这是什么原因啊
在 https://172.17.0.2:5000/上的registry运行着呢吗建议看看防火墙防火墙关着呢80%可能是防火墙的问题,错误提示意思是通讯失败防火墙关着呢!<divclass='ref'>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。