Harbor安装
官网地址:https://goharbor.io/
**下载地址:**https://github.com/goharbor/harbor/releases/download/v2.4.2/harbor-offline-installer-v2.4.2.tgz
部署
1. tar xvf harbor-offline-installer-v2.4.2.tgz
2. cd harbor
3. cp harbor.yml.tmpl harbor.yml
主要修改hostname,port 不使用https将其注释掉
# The IP address or hostname to access admin UI and registry service.
# DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients.
hostname: xl.image
# http related config
http:
# port for http, default is 80. If https enabled, this port will redirect to https port
port: 5000
# 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
4. ./prepare
5. ./install.sh
6. install完成后可以通过docker ps -a 查看harbor容器是否都成功启动
7. 访问xl.image:5000 即可看到harbor界面,愉快的使用harbor吧。