美文网首页docker
记录docker 仓库harbor安装

记录docker 仓库harbor安装

作者: 燃燃的爸爸 | 来源:发表于2019-10-14 14:49 被阅读0次

一.安装docker环境

这个网上很多教程

二、安装docker-compose

  • yum install epel-release -y
  • yum install python2-pip -y
  • pip install docker-compose
    # display docker-compose version
  • docker-compose version

三、下载、安装harbor

  • 下载
wget https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-offline-installer-v1.8.1.tgz
  • 解压
tar xzvf harbor-offline-installer-v1.8.1.tgz -C /usr/local/
  • 修改harbor.xml
hostname: 192.168.0.145
db_password = root123
# 启动Harbor后,管理员UI登录的密码,默认是Harbor12345
harbor_admin_password = Harbor12345
  • 安装
    ./prepare #配置Harbor
    ./install.sh #安装Harbor

四、游览器访问

http://192.168.0.145

五、游览器https访问

根据上面的信息生成密钥对,crt和pem这个网上也有很多方案。
修改harbor.yml

# https related config
 https:
#   # https port for harbor, default is 443
   port: 443
#   # The path of cert and key files for nginx
   certificate: /your/certificate/path
   private_key: /your/private/key/path

将证书放入到指定的位置。
重新启动:
./prepare #配置Harbor
./install.sh #安装Harbor

相关文章

网友评论

    本文标题:记录docker 仓库harbor安装

    本文链接:https://www.haomeiwen.com/subject/wsjrmctx.html