wget https://github.com/goharbor/harbor/releases/download/v2.2.0/harbor-offline-installer-v2.2.0.tgz
tar xvf harbor-offline-installer-v2.2.0.tgz
mv ./harbor /opt/harbor
cd /opt/harbor
cp harbor.yml.tmpl harbor.yml
harbor.yml
# 配置主机名
hostname: 10.14.31.129
# 配置对外宣告的地址
external_url: http://10.14.31.129
# 配置存储目录
data_volume: /data/harbor
# 注释 https 块
#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