harbor 安装过程

Posted liweiming

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了harbor 安装过程相关的知识,希望对你有一定的参考价值。

[[email protected] harbor]# ./prepare 
Clearing the configuration file: ./common/config/adminserver/env
Clearing the configuration file: ./common/config/ui/env
Clearing the configuration file: ./common/config/ui/app.conf
Clearing the configuration file: ./common/config/ui/private_key.pem
Clearing the configuration file: ./common/config/db/env
Clearing the configuration file: ./common/config/jobservice/env
Clearing the configuration file: ./common/config/jobservice/app.conf
Clearing the configuration file: ./common/config/registry/config.yml
Clearing the configuration file: ./common/config/registry/root.crt
Clearing the configuration file: ./common/config/nginx/cert/reg.riyimei.cn.crt
Clearing the configuration file: ./common/config/nginx/cert/reg.riyimei.cn.key
Clearing the configuration file: ./common/config/nginx/nginx.conf
Clearing the configuration file: ./common/config/log/logrotate.conf
loaded secret from file: /data/secretkey
Generated configuration file: ./common/config/nginx/nginx.conf
Generated configuration file: ./common/config/adminserver/env
Generated configuration file: ./common/config/ui/env
Generated configuration file: ./common/config/registry/config.yml
Generated configuration file: ./common/config/db/env
Generated configuration file: ./common/config/jobservice/env
Generated configuration file: ./common/config/log/logrotate.conf
Generated configuration file: ./common/config/jobservice/app.conf
Generated configuration file: ./common/config/ui/app.conf
Generated certificate, key file: ./common/config/ui/private_key.pem, cert file: ./common/config/registry/root.crt
The configuration files are ready, please use docker-compose to start the service.
[[email protected] harbor]# ./install.sh 
[Step 0]: checking installation environment ...
Note: docker version: 1.12.6
Note: docker-compose version: 1.15.0
[Step 1]: loading Harbor images ...
Loaded image: vmware/notary-server-photon:v0.5.1-v1.4.0
Loaded image: vmware/notary-signer-photon:v0.5.1-v1.4.0
Loaded image: vmware/harbor-db:v1.4.0
Loaded image: vmware/clair-photon:v2.0.1-v1.4.0
Loaded image: vmware/postgresql-photon:v1.4.0
Loaded image: vmware/harbor-adminserver:v1.4.0
Loaded image: vmware/harbor-ui:v1.4.0
Loaded image: vmware/harbor-log:v1.4.0
Loaded image: vmware/harbor-jobservice:v1.4.0
Loaded image: vmware/nginx-photon:v1.4.0
Loaded image: vmware/registry-photon:v2.6.2-v1.4.0
Loaded image: vmware/photon:1.0
Loaded image: vmware/mariadb-photon:v1.4.0
Loaded image: vmware/harbor-db-migrator:1.4
[Step 2]: preparing environment ...
Clearing the configuration file: ./common/config/adminserver/env
Clearing the configuration file: ./common/config/ui/env
Clearing the configuration file: ./common/config/ui/app.conf
Clearing the configuration file: ./common/config/ui/private_key.pem
Clearing the configuration file: ./common/config/db/env
Clearing the configuration file: ./common/config/jobservice/env
Clearing the configuration file: ./common/config/jobservice/app.conf
Clearing the configuration file: ./common/config/registry/config.yml
Clearing the configuration file: ./common/config/registry/root.crt
Clearing the configuration file: ./common/config/nginx/cert/reg.riyimei.cn.crt
Clearing the configuration file: ./common/config/nginx/cert/reg.riyimei.cn.key
Clearing the configuration file: ./common/config/nginx/nginx.conf
Clearing the configuration file: ./common/config/log/logrotate.conf
loaded secret from file: /data/secretkey
Generated configuration file: ./common/config/nginx/nginx.conf
Generated configuration file: ./common/config/adminserver/env
Generated configuration file: ./common/config/ui/env
Generated configuration file: ./common/config/registry/config.yml
Generated configuration file: ./common/config/db/env
Generated configuration file: ./common/config/jobservice/env
Generated configuration file: ./common/config/log/logrotate.conf
Generated configuration file: ./common/config/jobservice/app.conf
Generated configuration file: ./common/config/ui/app.conf
Generated certificate, key file: ./common/config/ui/private_key.pem, cert file: ./common/config/registry/root.crt
The configuration files are ready, please use docker-compose to start the service.
[Step 3]: checking existing instance of Harbor ...
Note: stopping existing Harbor instance ...
Removing harbor-jobservice  ... done
Removing nginx              ... done
Removing harbor-ui          ... done
Removing harbor-db          ... done
Removing harbor-adminserver ... done
Removing registry           ... done
Removing harbor-log         ... done
Removing network harbor_harbor
[Step 4]: starting Harbor ...
Creating network "harbor_harbor" with the default driver
Creating harbor-log ... 
Creating harbor-log ... done
Creating harbor-adminserver ... 
Creating registry ... 
Creating harbor-db ... 
Creating harbor-adminserver
Creating registry
Creating harbor-adminserver ... done
Creating harbor-ui ... 
Creating harbor-ui ... done
Creating nginx ... 
Creating harbor-jobservice ... 
Creating nginx
Creating harbor-jobservice ... done
? ----Harbor has been installed and started successfully.----
Now you should be able to visit the admin portal at https://reg.riyimei.cn. 
For more details, please visit https://github.com/vmware/harbor .

以上是关于harbor 安装过程的主要内容,如果未能解决你的问题,请参考以下文章

harbor镜像仓库原理和安装

Harbor最新版部署Harbor最新版部署

Harbor一键部署——初学者如何快速了解它?

安装harbor私有镜像仓库

Cloud ❀ 构建Docker仓库Harbor过程详解(配置文件全参解析注释)

开源仓库Harbor搭建及配置过程