1、下载Harbor的压缩包 github地址:Release v2.0.4 · goharbor/harbor · GitHub
https://github.com/goharbor/harbor/releases
2、上传压缩包到linux,并解压
tar -xzf harbor-offline-installer-v1.9.2.tgz
mkdir /opt/harbor
mv harbor/* /opt/harbor
cd /opt/harbor
3、修改Harbor的配置 compose github地址 Release 1.28.6 · docker/compose · GitHub
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/dockercompose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
vi harbor.yml
修改hostname和port
hostname: 192.168.66.102
port: 85
4、安装Harbor
./prepare
./install.sh
5、启动Harbor
docker-compose up -d 启动
docker-compose stop 停止
docker-compose restart 重新启动
16、访问Harbor
http://192.168.66.102:85
默认账户密码:admin/Harbor12345