harbor 2.0安装

1、Harbor安装文件下载

Github地址:https://github.com/goharbor/harbor/releases/

 

2、下载docker-compose

Github地址:https://github.com/docker/compose/releases/

 

3、下载后放置到Linux /usr/bin目录下,并重命名为docker-compose,并赋予可执行权限。解压harbor

[root@node3 ~]# ls
anaconda-ks.cfg  docker-compose-Linux-x86_64  harbor-offline-installer-v2.0.0.tgz
[root@node3 ~]# mv  docker-compose-Linux-x86_64 /usr/bin/docker-compose
[root@node3 ~]# chmod +x /usr/bin/docker-compose
[root@node3 ~]# tar -zxf harbor-offline-installer-v2.0.0.tgz

 

4、修改harbor配置

复制harbor.yaml.tmpl为harbor.yaml,并修改harbor.yaml配置文件,修改内容如下:

修改harbor hostname为主机IP,同时修改harbor端口,同时关闭https,修改data_volume为/home/demo/harbor/data,修改log的挂载目录location: /home/demo/harbor/harbor

 vi harbor.yml.tmpl 

 

 4、启动harbor

./install.sh

 

 

 

5、停止Harbor与重启

停止:docker-compose down

启动:docker-compose up -d

 

6、访问Harbor

用户名:admin 密码:Harbor12345

 

posted @ 2021-04-17 12:03  执酒  阅读(360)  评论(0编辑  收藏  举报