赞
踩
1. 安装docker
- yum install -y yum-utils device-mapper-persistent-data lvm2
- yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- yum list docker-ce.x86_64 --showduplicates |sort -r
- yum install docker-ce-17.09.1.ce -y
- systemctl enable docker
- systemctl start docker
- docker version
2. 安装docker-compose
- curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- 或者
- curl -L https://get.daocloud.io/docker/compose/releases/download/v2.3.4/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
-
- chmod +x /usr/local/bin/docker-compose
-
- docker-compose --version
3. 部署harbor
(1) 下载harbor离线安装包(百度云地址
)
- wget https://github.com/goharbor/harbor/releases/download/v2.4.2/harbor-offline-installer-v2.4.2.tgz
-
- tar -zxvf harbor-offline-installer-v2.4.2.tgz #解压离线安装包
(2) 配置harbor
- cd harbor
- cp harbor.yml.tmpl harbor.yml
- vim harbor.yml
修改内容 :
(3)启动harbor
bash install.sh
(4)docker-compose ps 查看
(5) 浏览器登陆查看
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。