2-2.3 部署docker镜像私有仓库harbor

xsg 2020-06-21

2.3.1 部署环境

环境选择在 pg60-200.k8s.host.com 虚机上部署

2.3.2 下载安装二进制软件包

# GitHub仓库地址:https://github.com/goharbor/harbor
shell> cd /usr/local/src
shell> wget http://dlsw.91donkey.com/software/source/k8s/harbor-offline-installer-v1.8.6.tgz
shell> tar zxf harbor-offline-installer-v1.8.6.tgz -C /opt/

2.3.3 配置

  • 编辑 /opt/harbor/harbor.yml 文件,修改下面的参数值:
hostname: harbor.k8s.91donkey.com
data_volume: /export/harbor/data
location: /export/harbor/log

2.3.4 安装docker-compose

shell> yum -y install docker-compose
shell> rpm -qa docker-compose
docker-compose-1.18.0-4.el7.noarch

2.3.5 安装harbor

shell> mkdir -p /export/harbor/{data,log}
shell> cd /opt/harbor
shell> ./install.sh

2.3.6 检查harbor启动情况

2-2.3 部署docker镜像私有仓库harbor

2.3.7 浏览器访问harbor

相关推荐