harbor下载地址 - 安装依赖环境包
yum -y install epel-release
yum -y install python-pip gcc python-devel gcc-devel libxslt-devel redhat-rpm-config python-devel openssl-devel
pip install --upgrade pip
pip install docker-compose
docker-compose version
[root@zb-192-168-1-139 ~]# tar xf harbor-offline-installer-v1.10.1.tgz
[root@zb-192-168-1-139 ~]# cd harbor/
#修改配置文件(这里测试环境关闭https,不配置ssl证书)
[root@zb-192-168-1-139 harbor]# cat harbor.yml | egrep -v '^#|^ #|^$|^ #'
hostname: 192.168.1.139
http:
port: 80
harbor_admin_password: Harbor12345
database:
password: root123
max_idle_conns: 50
max_open_conns: 100
data_volume: /data
clair:
updaters_interval: 12
jobservice:
max_job_workers: 10
notification:
webhook_job_max_retry: 10
chart:
absolute_url: disabled
log:
level: info
local:
rotate_count: 50
rotate_size: 200M
location: /var/log/harbor
_version: 1.10.0
proxy:
http_proxy:
https_proxy:
no_proxy:
components:
- core
- jobservice
- clair
[root@zb-192-168-1-139 harbor]#
[root@zb-192-168-1-139 harbor]# ./install.sh
[root@zb-192-168-1-139 harbor]# docker-compose start
[root@zb-192-168-1-139 harbor]# docker-compose ps
Name Command State Ports
---------------------------------------------------------------------------------------------
harbor-core /harbor/harbor_core Up (healthy)
harbor-db /docker-entrypoint.sh Up (healthy) 5432/tcp
harbor-jobservice /harbor/harbor_jobservice ... Up (healthy)
harbor-log /bin/sh -c /usr/local/bin/ ... Up (healthy) 127.0.0.1:1514->10514/tcp
harbor-portal nginx -g daemon off; Up (healthy) 8080/tcp
nginx nginx -g daemon off; Up (healthy) 0.0.0.0:80->8080/tcp
redis redis-server /etc/redis.conf Up (healthy) 6379/tcp
registry /home/harbor/entrypoint.sh Up (healthy) 5000/tcp
registryctl /home/harbor/start.sh Up (healthy)
通过浏览器查看http://harborIP,用户名admin,密码是你在harbor.yml配置的密码。