当前位置:   article > 正文

centos7 部署harbor镜像仓库_centos7部署harbor

centos7部署harbor

1. 安装docker

  1. yum install -y yum-utils device-mapper-persistent-data lvm2
  2. yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
  3. yum list docker-ce.x86_64 --showduplicates |sort -r
  4. yum install docker-ce-17.09.1.ce -y
  5. systemctl enable docker
  6. systemctl start docker
  7. docker version

2. 安装docker-compose 

  1. curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  2. 或者
  3. curl -L https://get.daocloud.io/docker/compose/releases/download/v2.3.4/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
  4. chmod +x /usr/local/bin/docker-compose
  5. docker-compose --version

3. 部署harbor

(1) 下载harbor离线安装包(百度云地址
)

  1. wget https://github.com/goharbor/harbor/releases/download/v2.4.2/harbor-offline-installer-v2.4.2.tgz
  2. tar -zxvf harbor-offline-installer-v2.4.2.tgz #解压离线安装包

(2) 配置harbor

  1. cd harbor
  2. cp harbor.yml.tmpl harbor.yml
  3. vim harbor.yml

修改内容 :

(3)启动harbor  

bash install.sh

(4)docker-compose ps 查看

(5) 浏览器登陆查看

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/酷酷是懒虫/article/detail/913138
推荐阅读
相关标签
  

闽ICP备14008679号