snow-swallow / blog

Seek more? Go to Issues :-)
1 stars 0 forks source link

安装harbor #102

Open snow-swallow opened 3 years ago

snow-swallow commented 3 years ago
  1. 安装docker
  2. 安装docker-compose
  3. 安装harbor 4.1 下载安装包离线版 harbor-offline-installer-v2.3.1.tgz (https://github.com/goharbor/harbor/releases) 4.2 解压harbor 4.3 修改harbor 配置 4.3.1 修改host 4.3.2 禁止https 4.4 检查安装
    $ ./prepare

    4.5 安装

    $ ./install.sh

harbor.yml

hostname: 1.1.1.1

# http related config
http:
  # port for http, default is 80. If https enabled, this port will redirect to https port
  port: 80

# 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
snow-swallow commented 3 years ago

重启: 查阅install.sh, 发现是使用了docker-compose 来安装和启动的,所以使用如下命令即可

docker-compose up -d