温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Harbor 安装部署

发布时间:2020-07-27 10:26:41 来源:网络 阅读:863 作者:有功夫 栏目:云计算

环境信息:

操作系统 主机名 IP地址
CentOS7.6 harbor 192.168.61.238

Harbor 安装部署

官方发布地址:<https://github.com/goharbor/harbor/releases>
程序版本依赖:docker-ce docker-compose 1.18.0+ .

Harbor支持在线安装及离线安装,此文章采用在线离线安装的形式,且安装版本为1.8.3

一、下载安装程序

# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
# yum install -y yum-utils
# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
# yum install docker-compose -y
# yum install docker-ce –y
# systemctl enable docker
# systemctl start docker
# 下载
# wget https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-offline-installer-v1.8.3.tgz

# 解压
# tar -zxvf harbor-offline-installer-v1.8.3.tgz
# 

二、配置

配置参数位于文件harbor.yml中

可根据自己的需求设定。

这里的https证书是我在腾讯云申请的免费SSL证书,你如果在腾讯云注册有域名也可以在这里 <https://console.cloud.tencent.com/ssl> 直接申请,当然你也可以使用免费证书的申请。

也可以自签证书:

openssl req -x509 -nodes -days 36500 -newkey rsa:2048 -keyout /date/cert/server.key -out
/date/cert/server.crt
hostname: 192.168.61.238

# https related config
https:
  port: 443
  certificate: /data/cert/server.crt
  private_key: /data/cert/server.key

harbor_admin_password: youpassword

# The default data volume
data_volume: /data/harbor/data

三、安装

./install
向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI