Docker搭建Harbor私有仓库
2021-12-07 本文已影响0人
墨迹嘿嘿
环境、软件准备
Docker确定已经成功安装
安装Docker-compose环境:
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
image
对二进制文件赋可执行权限
sudo chmod +x /usr/local/bin/docker-compose
测试下docker-compose是否安装成功
docker-compose -v
image
下载在线安装包
wget https://github.com/vmware/harbor/releases/download/v1.1.2/harbor-online-installer-v1.1.2.tgz
image
image
进行解压
tar xvf harbor-online-installer-v1.1.2.tgz
image
进入harbor修改配置
vi harbor.cfg
image
修改完配置文件后,在的当前目录执行 ./install.sh
./install.sh
image
完成
image访问IP
image登录:
admin
Harbor12345