docker push 遇到如下问题解决方法
FATA[0004] Error response from daemon: v1 ping attempt failed with error: Get https://10.8.8.127:5000/v1/_ping: EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate
·
FATA[0004] Error response from daemon: v1 ping attempt failed with error: Get https://10.8.8.127:5000/v1/_ping: EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 10.8.8.127: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/10.8.8.127:5000/ca.crt
解决方法:
修改docker的配置文件/etc/default/docker,添加下面的内容,
DOCKER_OPTS="--insecure-registry xxx.xxx.xxx.xxx:5000"
然后重启docker后台进程,
$ sudo service docker restart
就OK了。
更多推荐
已为社区贡献1条内容
所有评论(0)