欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

搭建Harbor Docker仓库

程序员文章站 2022-04-03 21:16:17
...

先安装好Docker

rm -f docker-ce-18.03.1.ce-1.el7.centos.x86_64.rpm docker-ce-18.09.5-3.el7.x86_64.rpm containerd.io-1.2.5-3.1.el7.x86_64.rpm docker-ce-cli-18.09.5-3.el7.x86_64.rpm
yum install -y *

配置docker-compose

[aaa@qq.com compose]# ls
docker-compose-Linux-x86_64-1.16.1  docker-compose-Linux-x86_64-1.22.0
[aaa@qq.com compose]# cp docker-compose-Linux-x86_64-1.16.1 /usr/local/bin/docker-compose 

[aaa@qq.com compose]# chmod +x /usr/local/bin/docker-compose 

wget -P /usr/local/src/     https://github.com/vmware/harbor/releases/download/v1.2.0/harbor-online-installer-v1.2.0.tgz
[aaa@qq.com ~]# tar zxf harbor-online-installer-v1.2.0.tgz -C /usr/local/
[aaa@qq.com ~]# cd /usr/local/harbor/
[aaa@qq.com harbor]# vim harbor.cfg 

搭建Harbor Docker仓库

[aaa@qq.com harbor]# ./install.sh 

搭建Harbor Docker仓库

[aaa@qq.com harbor]# docker-compose start
Starting log         ... done
Starting adminserver ... done
Starting registry    ... done
Starting ui          ... done
Starting mysql       ... done
Starting jobservice  ... done
Starting proxy       ... done

在浏览器上输入172.25.76.1查看
用户名admin
密码Harbor12345
搭建Harbor Docker仓库