其他分享
首页 > 其他分享> > docker push 报错Get https://10.100.9.97:5000/v1/_ping: http: server gave HTTP response to HTTPS client

docker push 报错Get https://10.100.9.97:5000/v1/_ping: http: server gave HTTP response to HTTPS client

作者:互联网

centos7下运行docker push 10.100.9.97:5000/nginx:1.19报错:

  Get https://10.100.9.97:5000/v1/_ping: http: server gave HTTP response to HTTPS client

 

解决方法:

vi /etc/docker/daemon.json

{
"registry-mirrors": [
"https://2lqq34jg.mirror.aliyuncs.com",
"https://pee6w651.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"dns": ["8.8.8.8","8.8.4.4"],
"insecure-registries":["10.100.9.97:5000"]
}

 

systemctl restart docker

 

标签:10.100,5000,9.97,报错,https,docker,com
来源: https://www.cnblogs.com/WorkerZyr/p/14788461.html