Docker server gave HTTP response to HTTPS client 问题处理办法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33733970/article/details/86507345

#不管是pull还是push都可以用的:
在Push一个镜像到本地的registry时,报错:

docker push 192.168.163.131:5000/test
The push refers to a repository [192.168.163.131:5000/test]
Get https://192.168.163.131:5000/v1/_ping: http: server gave HTTP response to HTTPS client

解决办法是:
在/etc/docker下,创建daemon.json文件,写入:

{ “insecure-registries”:[“192.168.163.131:5000”]}

重启docker

systemctl restart docker

参考文章:
https://blog.csdn.net/u011085172/article/details/72303038

猜你喜欢

转载自blog.csdn.net/qq_33733970/article/details/86507345