一、环境准备
- Linux 服务器
- Docker (Linux 安装 Docker)
- Docker Compose (Linux 安装 Docker Compose)
二、下载 Harbor 安装包
下载地址:https://github.com/goharbor/harbor/releases
选择离线版下载。
三、安装
1、上传到服务器并解压
tar -zxvf harbor-offline-installer-v2.5.3.tgz
2、修改配置文件
cd harbor
cp harbor.yml.tmpl harbor.yml
vim harbor.yml
# 修改为服务器地址
hostname: 192.168.40.136
# 将https的相关配置全部注释掉
# https related config
# 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
3、执行安装脚本
./install.sh
4、访问 Harbor
浏览器打开:http://192.168.40.136/
默认账号为:admin/Harbor12345