1.安装docker
curl -sfL https://get.rainbond.com/install_docker | bash
2.安装docker-compose
yum install -y docker-compose
3.安装harbor
在线离线包下载
选一个喜欢的右击复制链接下载地址
wget https://ghproxy.com/https://github.com/goharbor/harbor/releases/download/v2.8.4/harbor-online-installer-v2.8.4.tgz
tar -xf
cd harbor
./prepare
cp harbor.yml.tmpl harbor.yml
vim harbor.yml
hostname: 自己的ip或者域名
#https:
# https port for harbor, default is 443
#port: 443
# The path of cert and key files for nginx
#certificate: /your/certificate/path
#private_key: /your/private/key/path
./install.sh
docker-compose ps
4.访问
用户名默认admin
密码Harbor12345