Harbor 1.4.0 部署

原创 Jeff Tang  2018-08-23 13:24  阅读 80 次 次

# 安装 Docker-CE

yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce docker-compose
systemctl enable docker
systemctl start docker

 

# 部署 Harbor

mkdir -p /data/harbor/tmp
cd /data/harbor/tmp
wget http://harbor.orientsoft.cn/harbor-v1.4.0/harbor-offline-installer-v1.4.0.tgz
tar -xf harbor-offline-installer-v1.4.0.tgz
mv harbor ../harbor-v1.4.0
sed -i 's/hostname = reg.mydomain.com/hostname = registry.easylinux.com/g' /data/harbor/harbor-v1.4.0/harbor.cfg
sed -i 's/ui_url_protocol = http/ui_url_protocol = https/g' /data/harbor/harbor-v1.4.0/harbor.cfg
sed -i 's/secretkey_path = \/data/secretkey_path = \/data\/harbor\/harbor-v1.4.0\/data/g' /data/harbor/harbor-v1.4.0/harbor.cfg
sed -i 's/\/data\/cert\/server.crt/\/data\/certs\/easylinux.cn.crt/g' /data/harbor/harbor-v1.4.0/harbor.cfg
sed -i 's/\/data\/cert\/server.key/\/data\/certs\/easylinux.cn.key/g' /data/harbor/harbor-v1.4.0/harbor.cfg

 

本文地址:https://www.easylinux.cn/archives/673
版权声明:本文为原创文章,版权归 Jeff Tang 所有,欢迎分享本文,转载请保留出处!
NEXT:已经是最新一篇了

发表评论


表情