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