小信 2020-06-22
harbo 官网地址:https://github.com/goharbor/harbor
下载离线安装包,并上传到服务器/root
docker compose 官网地址:https://docs.docker.com/compos
安装docker compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
yum install -y yum-utils yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum -y install docker-ce docker-ce-cli containerd.io systemctl start docker systemctl enable docker
tar zxf harbor-offline-installer-v1.5.0.tgz
vim /root/harbor/harbor.cfg #配置访问域名或者ip hostname = 192.168.0.109 #web 登录 harbor 的账号密码 harbor_admin_passwd = Harbor12345
./prepare
./install.sh
安装成功后你会发现harbor 拉取了很多镜像
并以这些镜像创建了很多容器