zoukankan      html  css  js  c++  java
  • CentOS7安装Harbor

    参考博客:CentOS7安装Harbor1.1.2
    参考博客:Docker harbor离线安装

    在线安装

    • 下载Docker Repo
    sudo yum install -y yum-utils device-mapper-persistent-data lvm2
    
    sudo yum-config-manager 
        --add-repo 
        https://download.docker.com/linux/centos/docker-ce.repo
    
    • 安装Docker-CE
    sudo yum makecache fast
    
    sudo yum install docker-ce
    //列出当前可用的docker版本信息
    yum list docker-ce.x86_64  --showduplicates | sort -r
    //安装特定的版本
    sudo yum install docker-ce-17.06.0.ce-1.el7.centos
    //启动Docker
    sudo systemctl start docker
    //验证docker是否正确安装
    sudo docker run hello-world
    
    • 安装Docker-Compose
    curl -L https://github.com/docker/compose/releases/download/1.14.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    docker-compose --version
    
    • 安装Harbor
    https://github.com/vmware/harbor/releases
    tar xvf harbor-online-installer-v1.1.2.tgz
    //在解压后的路径下,找到harbor.cfg进行修改,安装
    sudo ./install.sh
    sudo ./prepare
    docker-compose up -d
    

    离线安装

    • 下载离线安装包
    http://harbor.orientsoft.cn/
    
    • docker-compose下载
    curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
    
    • 增加下载的docker-compose执行权限
    chmod 755 /usr/local/bin/docker-compose
    
    • 解压缩Harbor包,配置Harbor参数

    • Harbor离线安装包

    ./prepare
    ./install.sh
    
  • 相关阅读:
    react native 添加mobx
    js-(19,999,999.00)
    html移动端 -- meta-模板 + rem
    HTML5 移动端头部标签
    js
    html --- rem
    es6--async--await
    nrm+nvm
    js-call-apply
    SQL映射文件
  • 原文地址:https://www.cnblogs.com/mrnx2004/p/11731052.html
Copyright © 2011-2022 走看看