docker pull报错: Error response from daemon: Get https://../v1/_ping: http: server gave HTTP response

问题描述,安装好docker私有库之后,不管是从私有库pull还是push,都会报错:

Error response from daemon: Get https://xxx.xxx.xxx.xxx:5000/v1/_ping: http: server gave HTTP response to HTTPS client

原因是由于客户端采用https,docker registry未采用https服务所致。一种处理方式是把客户对私有库地址请求改为http。

解决方法是通过修改/etc/docker/daemon.json,

运行命令:echo '{ "insecure-registries":["xxx.xxx.xxx.xxx:5000"] }' > /etc/docker/daemon.json

其中xxx.xxx.xxx.xxx是你自己的私有库的IP地址

docker pull报错: Error response from daemon: Get https://../v1/_ping: http: server gave HTTP response_第1张图片

重启docker:systemctl restart docker

转载:https://blog.csdn.net/u010049282/article/details/53099011/

转载:https://www.cnblogs.com/lin1/p/6207348.html

你可能感兴趣的:(docker,centos)