部署harbor
部署harbor
(1)下载地址
https://github.com/goharbor/harbor
wget https://github.com/goharbor/harbor/releases/download/v2.4.3/harbor-offline-installer-v2.4.3.tgz
(2)解压harbor软件包
[root@docker ~]# tar xf harbor-offline-installer-v2.8.0.tgz -C /data
(3)修改harbor的配置文件
[root@docker ~]# vim /data/harbor/harbor.yml
...
# 配置主机名称
hostname: 192.168.0.167
http:
# port for http, default is 80. If https enabled, this port will redirect to https port
port: 180
# 禁用https
# 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
# 修改harbor的密码
harbor_admin_password: 1
# 存数据的地方
data_volume: /data/harbor/data
# 存日志的地方
location: /data/harbor/log
(4)开始安装harbor服务
[root@docker ~]# cd /data/harbor/
./install.sh
(5)访问harbor的页面
如下图所示,用户名为admin,密码为上面定义的"1"。
启用后会在harbor 目录下自动生成一个doker-compose.yml 文件 以后就可以通过 doker-compose 来管理