docker安装Harbor
1. 先安装docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
2. 授予执行权限
chmod u+x /usr/local/bin/docker-compose
3. 离线下载Harbor安装包
wget https://github.com/goharbor/harbor/releases/download/v2.5.1/harbor-offline-installer-v2.5.1.tgz
4. 解压安装包
tar xf harbor-offline-installer-v2.5.1.tgz
5. 复制harbor.yml文件,并修改配置
cp harbor.yml.tmpl harbor.yml
vim harbor.yml #更改hostname 注释掉https 要不然安装报错
6. 开始安装
[root@harbor harbor]# ./install.sh
7. 安装完成,用浏览器输入ip访问(默认账号是admin 密码是Harbor12345)
专注才能创造非一般的价值!
如有技术商务合作,请联系微信: 13162518256