本文主要是介绍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:systemctl restart docker
转载:https://blog.csdn.net/u010049282/article/details/53099011/
转载:https://www.cnblogs.com/lin1/p/6207348.html
这篇关于docker pull报错: Error response from daemon: Get https://../v1/_ping: http: server gave HTTP response的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!