docker连不上私有仓库Harbor
解决办法:
# 配置多个host(配置本地域名映射)
[root@vm10-11-0-38 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.88 dockerhub.svipghy.com
配置docker配置(由于配置的https拿http访问不到,配置80端口)
cat /etc/docker/daemon.json
{
"insecure-registries":["192.168.1.88"],
"registry-mirrors":["https://rsbud4vc.mirror.aliyuncs.com","https://registry.docker-cn.com","https://docker.mirrors.ustc.edu.cn","https://dockerhub.azk8s.cn","http://hub-mirror.c.163.com","http://qtid6917.mirror.aliyuncs.com",
}
QQ:1061767621
Q群:215481318