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
时间: 2024-10-05 06:08:47