【Docker push镜像报错】
The push refers to a repository [192.168.200.103:5000/rancher/server]
Get https://192.168.200.103:5000/v1/_ping: http: server gave HTTP response to HTTPS client
【解决方案】
1.检查/etc/sysconfig/docker配置后发现仓库的IP地址配置错误,将103打成了105,更改后,重启docker服务,push正常。
ADD_REGISTRY='--add-registry 192.168.200.103:5000'
INSECURE_REGISTRY='--insecure-registry 192.168.200.103:5000'
2. echo '{ "insecure-registries":["xxx.xxx.xxx.xxx:5000"] }' > /etc/docker/daemon.json