搭建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###
- 下载harbor软件
- 官方地址:https://github.com/goharbor/harbor/releases
- 官方说明文档:https://github.com/goharbor/harbor/blob/master/docs/installation_guide.md
- 证书文档:https://github.com/goharbor/harbor/blob/master/docs/configure_https.md
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