参考:https://blog.csdn.net/ladymorgana/article/details/129945010
1、在https://github.com/goharbor/harbor/releases下载harbor-offline-installer-v2.10.1.tgz
2、将下载的包上传到/opt并解压,解压完成后,在当前目录生成harbor目录/opt//harbor
tar -zxvf harbor-offline-installer-v2.10.1.tgz
3. 创建data目录
mkdir -p /opt/harbor/data
4、复制 harbor.yml
cd /opt/harbor cp harbor.yml.tmpl harbor.yml
5、修改harbor.yml
hostname: prod-registry.leyingiot.com # http related config http: # port for http, default is 80. If https enabled, this port will redirect to https port port: 80 # https related config https: # https port for harbor, default is 443 port: 443 # The path of cert and key files for nginx certificate: /opt/harbor/ssl/leyingiot_com.pem private_key: /opt/harbor/ssl/leyingiot_com.key # The default data volume data_volume: /data
6、进行本地安装
安装完成后会在当前目录自动生成docker-compose.yml文件
bash prepare bash install.sh
7、docker-compose 安装组件
docker-compose up -d
8、ip:port 访问
账号:admin 密码:Harbor12345
标签:opt,compose,harbor,yml,https,docker,port From: https://www.cnblogs.com/lfxx/p/18178050