码迷,mamicode.com
首页 > 其他好文 > 详细

Docker私服仓库push 错误

时间:2015-12-03 11:43:32      阅读:220      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!