搭建docker私有registory (harbor)

一、部署docker(略)###

详情见博客
https://www.cnblogs.com/wangchengyi/p/12133204.html

二、部署docker-compose###

1、第一种方法yum安装

yum install epel-release
yum -y install docker-compose

2、第二种方法安装

下载配置docker-compose
官方地址:https://docs.docker.com/compose/install/

curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

docker-compose --version

三、部署harbor###

wget https://storage.googleapis.com/harbor-releases/release-1.9.0/harbor-offline-installer-v1.9.0.tgz

tar -zxv -f harbor-offline-installer-v1.9.0.tgz -C /usr/local/

cd /usr/local/harbor

vim harbor.yml

./install.sh

使用浏览器打开

四、harbor重启命令###

进入harbor目录
 docker-compose down
 ./prepare
 docker-compose up –d
posted @ 2020-01-03 14:00  王诚意  阅读(605)  评论(0编辑  收藏  举报