首页 > 其他 > 详细

Docker私服仓库push 错误

时间:2015-12-03 11:42:24      阅读:530      评论:0      收藏:0      [点我收藏+]

docker push 提交时错误提示;

 

docker push 125.210.141.35:5000/redis

Error response from daemon: invalid registry endpoint https://125.210.141.35:5000/v0/: unable to ping registry endpoint https://125.210.141.35:5000/v0/ v2 ping attempt failed with error: Get https://125.210.141.35:5000/v2/: EOF v1 ping attempt failed with error: Get https://125.210.141.35:5000/v1/_ping: EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 125.210.141.35:5000` to the daemon‘s arguments. In the case of HTTPS, if you have access to the registry‘s CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/125.210.141.35:5000/ca.crt

 

提示的说明要加--insecure-registry 参数, 此参数是要在docker 服务启动时添加, 可通过以下命令查看是否使用此参数;

ps aux| grep docker  

 

在google 上找到很多种加此参数的方式都不成功,可能版本不对吧;

centos6.5, docker 1.7.1;

vi /etc/sysconfig/docker 
#修改 other_args
="--insecure-registry 125.210.141.35:5000" #重启服务 service docker restart

 

Docker私服仓库push 错误

原文:http://www.cnblogs.com/xdsfoo/p/5015426.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!