千家信息网

Harbor 安装部署

发表于:2025-12-01 作者:千家信息网编辑
千家信息网最后更新 2025年12月01日,环境信息:操作系统主机名IP地址CentOS7.6harbor192.168.61.238Harbor 安装部署官方发布地址:程序版本依赖:docker-ce docker-compose 1.18.
千家信息网最后更新 2025年12月01日Harbor 安装部署

环境信息:

操作系统主机名IP地址
CentOS7.6harbor192.168.61.238

Harbor 安装部署

官方发布地址:
程序版本依赖:docker-ce docker-compose 1.18.0+ .

Harbor支持在线安装及离线安装,此文章采用在线离线安装的形式,且安装版本为1.8.3

一、下载安装程序

# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo# yum install -y yum-utils# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo# yum install docker-compose -y# yum install docker-ce -y# systemctl enable docker# systemctl start docker
# 下载# wget https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-offline-installer-v1.8.3.tgz# 解压# tar -zxvf harbor-offline-installer-v1.8.3.tgz# 

二、配置

配置参数位于文件harbor.yml中

可根据自己的需求设定。

这里的https证书是我在腾讯云申请的免费SSL证书,你如果在腾讯云注册有域名也可以在这里 直接申请,当然你也可以使用免费证书的申请。

也可以自签证书:

openssl req -x509 -nodes -days 36500 -newkey rsa:2048 -keyout /date/cert/server.key -out/date/cert/server.crt
hostname: 192.168.61.238# https related confighttps:  port: 443  certificate: /data/cert/server.crt  private_key: /data/cert/server.keyharbor_admin_password: youpassword# The default data volumedata_volume: /data/harbor/data

三、安装

./install
0