Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and configure Harbor1.7 for CentOS7.5

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to install and configure Harbor1.7 in CentOS7.5. I hope you will get something after reading this article. Let's discuss it together.

1. Download the required package

Wget-P / usr/local https://storage.googleapis.com/harbor-releases/release-1.7.0/harbor-online-installer-v1.7.1.tgz

two。 Extract the file

Tar zxf / usr/local/harbor-online-installer-v1.7.1.tgz-C / usr/local/

3. Modify Harbor configuration

Hostname: configure the host name. You cannot set a host name such as 127.0.0.1 localhost. It can be IP or domain name.

Ui_url_protocol: specify whether to use HTTP protocol or HTTPS protocol

Email settings: mailbox settings and option configuration, which only take effect when launched for the first time. You can modify them after logging in to UI.

Harbor_admin_password: set the administrator's initial password and use it only when logging in for the first time

Auth_mode: user authentication mode. The default is db_auth. You can also use ldap_auth authentication.

Db_password: to use db, you need to specify a password to connect to the database

Self_registration: whether to allow self-registered users, the default is on, the new version can be modified in the graphical interface.

Max_job_workers: maximum number of jobs. Default is 10.

Customize_crt: whether to generate a certificate for token. Default is on.

The path to ssl_cert:nginx cert and key files is meaningful only if the https protocol is used.

The path to ssl_cert:nginx cert and key files is meaningful only if the https protocol is used.

Secretkey_path:The path of secretkey storage

Admiral_url:Admiral's url, comment this attribute, or set its value to NA when Harbor is standalone

Clair_db_password: the calir service is not enabled, but the following relevant parameter configurations should be checked in the ". / prepare" file under the decompressed directory and cannot be commented, otherwise the environment preparation check will not pass, report the "ConfigParser.NoOptionError: No option upright clairborne dbpassword` in section: uplifting verification'" related error. Or annotate the relevant checks and definitions in ". / prepare", but it should be noted that there are too many associations in the file, so it is recommended to modify the "harbor.cfg" file.

Ldap_url:ladp related settings, such as ldap authentication is not used, but the following relevant parameter configurations should be checked in the ". / prepare" file under the decompression directory and cannot be commented, otherwise the environment preparation check cannot pass, report the relevant error of "ConfigParser.NoOptionError: No option upright ldapdance timeout' in section: upright organizationation`" Or annotate the relevant checks and definitions in ". / prepare", but it should be noted that there are too many associations in the file, so it is recommended to modify the "harbor.cfg" file.

Ldap_scope:

Self_registration: self-registration is enabled by default, and off is disabled.

Token_expiration:token valid time, default 30minutes

Project_creation_restriction: create project permission control, default is "everyone" (everyone), can be set to "adminonly" (administrator)

Verify_remote_cert: whether to use authentication ssl when communicating with remote registry

Others use default values

4. Install docker-compose

Yum install docker-compose

5. Execute prepare and install.sh under the Harbor directory

6. Other physical machine docker is linked to this machine.

Vi / etc/docker/daemon.json

Join

{"insecure-registries": ["Harbor warehouse address"]}

7. Log in

Docker login HarborIp

After reading this article, I believe you have a certain understanding of "how to install and configure Harbor1.7 for CentOS7.5". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report