安装docker harbor私有镜像仓库

时间:2023-01-07 19:58:45

软件:harbor-offline-installer-v2.5.3.tgz

   docker-compose

前提条件:已安装部署docker环境

1下载软件

wget https://ghproxy.com/https://github.com/goharbor/harbor/releases/download/v2.5.3/harbor-offline-installer-v2.5.3.tgz
curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

2解压

tar -xvf harbor-offline-installer-v2.5.3.tgz
cd harbor/
ls
common common.sh docker-compose.yml harbor.v2.5.3.tar.gz harbor.yml harbor.yml.tmpl install.sh LICENSE prepare

3修改

chmod +x /usr/local/bin/docker-compose
vim harbor.yml
修改hostname为主机名
https那块配置注解掉

4启动

./install.sh

安装docker harbor私有镜像仓库

安装docker harbor私有镜像仓库

5页面登陆

账号密码在harbor.yaml文件中

安装docker harbor私有镜像仓库

安装docker harbor私有镜像仓库