1下载离线包
wget https://ghproxy.com/https://github.com/goharbor/harbor/releases/download/v2.5.0/harbor-offline-installer-v2.5.0.tgz
2、解压安装即可
tar -xvf harbor-offline-installer-v2.5.0.tgz
cp harbor.yml.tmpl harbor.yml # 复制一份配置
vim harbor.yml # 修改配置
- IP、端口;
- 注销 https 所有内容
sh .install.sh # 安装
3、修改docker daemon.json
{
"registry-mirrors": ["https://n5jclonh.mirror.aliyuncs.com","https://vz2hqrw3.mirror.aliyuncs.com","https://hub-mirror.c.163.com","https://registry.do
cker-cn.com","https://docker.mirrors.ustc.edu.cn","https://pee6w651.mirror.aliyuncs.com"],
"insecure-registries": ["172.16.200.98:5000"], # 添加此行,ip改为你的ip
"exec-opts": ["native.cgroupdriver=systemd"]
}
4、重启docker并测试
systemctl daemon-reload #重新加载
systemctl restart docker # 重新加载无效,则重启docker
docker login 172.16.200.98:5000 #测试登录
标签:aliyuncs,harbor,安装,https,mirror,docker,com From: https://www.cnblogs.com/bestzhang/p/17755376.html