官网下载离线安装包
harbor-offline-installer-v1.7.5.tgz
解压进入目录
安装报错需要先安装docker-compose环境
首先安装epel
yum install -y epel-release
然后安装
yum install -y python-pip
最后
pip install docker-compose
可能会报错
pip install --upgrade pip即可
重新安装harbor
./install.sh
成功注意这里harbor自带的镜像里面使用nginx进行代理 需要占用80 443 4443端口
配置文件在harbor.cfg 根据需要进行修改 启动成功访问网页
进行docker推送镜像出现问题
Error response from daemon: Get https://192.168.141.128/v2/: dial tcp 192.168.141.128:443: connect: connection refused
这里用这个文章的方法陪一下https就行了https://www.cnblogs.com/Rcsec/p/8479728.html