目录
http模式Harbor搭建
https://github.com/goharbor/harbor/releases
https://github.com/docker/compose/releases
# 安装docker
curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
yum -y install docker-ce
# 安装docker-compose
# https://github.com/docker/compose/releases下载包
mv docker-compose-linux-x86_64 /usr/bin/docker-compose
chmod +x /usr/bin/docker-compose
# 安装harbor
#https://github.com/goharbor/harbor/releases下载包
tar xf harbor-offline-installer-v2.0.0.tgz
cd harbor
cp harbor.yml.tmpl harbor.yml
mkdir /var/log/harbor/
# 配置http的harbor(harbor.yml)
hostname: 192.168.1.10 #修改主机名
#https: #注释https相关配置
# port: 443
# certificate: /your/certificate/path
# private_key: /your/private/key/path
./prepare
./install.sh
#浏览器访问 192.168.1.102
#默认用户名:admin 密码:Harbor12345
#新建项目-->shaochong-->公开
# docker配置可信任(/etc/docker/daemon.json)
{
"insecure-registries": ["http://192.168.1.10"]
}
# harbor修改yml
进入harbor的安装目录,修改harbor.yml
./prepare
docker-compose down -v
docker-compose up -d
标签:Harbir,compose,仓库,harbor,https,docker,com,yml
From: https://www.cnblogs.com/ican97/p/17782414.html