docker pull 的时候报错 Get https://hub.xxx.com/v1/_ping: dial tcp 192.168.1.8:443: getsockopt: connection refused
内网搭建自己的docker 仓库时遇到这个问题,原因是docker 默认不支持http的registry ,
vim /etc/docker/daemon.json 添加 { "insecure-registries":["hub.zuobiao.com"] }
重启 docker
systemctl restart docker.service
harbor拉代码而且需要先登陆:
docker login http://192.168.1.191/ -u username -p password