Docker容器

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

 

这篇关于docker push 报错Get https://10.100.9.97:5000/v1/_ping: http: server gave HTTP response to HTTPS client的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!