docker pull Error: Get https://hub.xxx.com/v1/_ping: dial tcp 192.168.1.8:443: getsockopt: connection refused

This problem is encountered when building your own docker warehouse on the intranet because docker does not support HTTP registry by default,

vim /etc/docker/daemon.JSON {“secure registers”: [“hub.Zuobiao.Com”]}

Restart docker

systemctl restart docker. service

Harbor pull code, and you need to log in first:

docker login http://192.168.1.191/ -u username -p password

Similar Posts: