快速安装harbor v2.2.0 单机版

  sre

docker install

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 makecache fast
yum install -y docker-ce
systemctl daemon-reload
systemctl enable docker
systemctl start docker

docker-compose install

#https://docs.docker.com/compose/install/#install-compose

curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-(uname -s)-(uname -m)" -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version

harbor install

wget https://github.com/goharbor/harbor/releases/download/v2.2.0/harbor-offline-installer-v2.2.0.tgz
tar zxvf harbor-offline-installer-v2.2.0.tgz
cd harbor
cp harbor.yml.tmpl harbor.yml
vim harbor.yml
#修改主机名和登录密码
./prepare
./install.sh 

LEAVE A COMMENT

Captcha Code