环境依赖:
docker
docker-compose
harbor包:
1、docker安装
可参考阿里云:
https://developer.aliyun.com/mirror/docker-ce?spm=a2c6h.13651102.0.0.22d31b11CdwoC7
2、docker-compose
查看最新版本
地址:https://github.com/goharbor/harbor/releases
wget -c https://github.com/docker/compose/releases/download/1.25.5/docker-compose-Linux-x86_64
cp docker-compose-linux-x86_64 /usr/bin/docker-compose
chmod +x /usr/bin/docker-compose
检验是否安装成功
docker-compose -v
3、下载安装 harbor
wget https://github.com/goharbor/harbor/releases/download/v1.10.10/harbor-online-installer-v1.10.10.tgz
cd harbor
./install
跑完即可
其中注意 修改harbor.yml 中的hostname 的值