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

 

上一篇:事务操作(声明式事务管理参数配置,传播行为)


下一篇:C#中方法、类等的默认访问修饰符~