Problem Description:
Get https refused while pushing to a private registry.
Symbols:
docker push 1.2.3.4:5000/test
The push refers to a repository [1.2.3.4:5000/test] (len: 1)
unable to ping registry endpoint https://1.2.3.4:5000/v0/
v2 ping attempt failed with error: Get https://1.2.3.4:5000/v2/: dial tcp 1.2.3.4:5000: connection refused
v1 ping attempt failed with error: Get https://1.2.3.4:5000/v1/_ping: dial tcp 1.2.3.4:5000: connection refused
Solution:
vi /etc/sysconfig/docker
OPTIONS='--selinux-enabled --insecure-registry 1.2.3.4:5000
systemctl restart docker