赞
踩
一、首先需要安装docker
step1:安装docker
#1、安装yun源
yum install -y yum-utils
#2、配置yum源
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# 如果上面源不稳定的话,更换为下列的aliyun源
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
#3、安装docker
yum install -y docker-ce docker-ce-cli
step2:安装docker-compose
wget https://github.com/docker/compose/releases/download/1.25.0-rc4/docker-compose-Linux-x86_64
cp docker-compose-Linux-x86_64 /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose version
step3:下载harbor源码安装包
wget https://github.com/goharbor/harbor/releases/download/v2.0.1/harbor-offline-installer-v2.0.1.tgz
tar -xvf harbor-online-installer-v1.8.0.tgz
# 1.编辑harbor配置文件
vim harbor.yml
修改hostname和port
hostname: 192.168.66.102
port: 85
# 2.安装Harbor
./prepare
./install.sh
#注:如果需要支持存储helm的chart包,添加如下参数
./install.sh --with-chartmuseum
step4:启动harbor服务
# 启动
docker-compose up -d
# 相关操作:
docker-compose stop # 停止
docker-compose restart # 重新启动
step5:访问Harbor
http://192.168.66.102:85
默认账户密码:admin/Harbor12345
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。