Harbor-v2.1.2 warehouse installation
1. Prerequisite environment
system | IP | system name |
---|---|---|
Centos 7.6 2 core CPU 4G memory | 10.0.21.115 | harbor |
1. Install Docker18 or above
2. Install and start
2. Install docker-compose
yum -y install docker-compose
docker-compose --version
2. Deploy Harbor v2.1.2
1. Download harbor-offline-installer-v2.1.2-rc1.tgz
mkdir /tools && cd /tools
wget https://github.com/vmware/harbor/releases/download/v2.1.2-rc1/harbor-offline-installer-v2.1.2-rc1.tgz
tar zxvf installer-v2.1.2-rc1.tgz -C /
cd /harbor
cp harbor.yml.tmpl harbor.yml
2. Modify the harbor.yml configuration file
vim harbor.yml
hostname: harbor.corp.trusit.com
http:
port: 80
#https协议配置 前提需导入证书
#https:
# port: 443
# certificate: /harbor/ssh_key/harbor.corp.trusit.com.crt
# private_key: /harbor/ssh_key/harbor.corp.trusit.com.key
#配置admin账号密码
harbor_admin_password: admin
3. Execute ./install.sh > installation script
✔ ----Harbor has been installed and started successfully.----
4. Modify the local hosts >
5. Browser visit https://harbor.corp.trusit.com