harbor1.19搭建简书

前提条件要安装docker和docker-compose,一般最新版就可以。

#docker
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum makecache fast
yum install docker-ce -y

systemctl start docker
systemctl enable docker

#docker-compose

yum -y install epel-release python-devel gcc-c++
yum -y install python-pip
yum install bash-completion -y
pip install --upgrade pip
pip install docker-compose

#habor
wget https://storage.googleapis.com/harbor-releases/release-1.9.0/harbor-offline-installer-v1.9.1.tgz
tar xf harbor-offline-installer-v1.9.1.tgz 
cd harbor/
vim harbor.yml 

hostname: 192.168.2.252 #此处需要修改为自己的机器ip或者是一个域名。
http:
  port: 8000 ###此端口需要根据需求修改##正式的配置文件有注掉的https的配置。如果需要可以看下
harbor_admin_password: Harbor12345 #

猜你喜欢

转载自blog.csdn.net/Doudou_Mylove/article/details/102819236
今日推荐