The whole process of installing and configuring Harbor1.7 on CentOS7.5

The whole process of installing and configuring Harbor1.7 on CentOS7.5

1. Download the required packages

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

2. Unzip 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 like 127.0.0.1 or localhost. It can be an IP or domain name.

ui_url_protocol: Specifies whether to use HTTP or HTTPS protocol

Email settings: Email settings, option configuration, only effective at first startup, can be modified after logging into the UI

harbor_admin_password: Set the administrator's initial password, which is only used 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: When using db, you need to specify the password to connect to the database

self_registration: whether to allow self-registration of users, the default is on, and the new version can be modified in the graphical interface.

max_job_workers: Maximum number of workers, the default is 10

customize_crt: whether to generate a certificate for token, the default is on

ssl_cert: The path to the nginx cert and key files. This is only meaningful when using the https protocol.

ssl_cert: The path to the nginx cert and key files. This is only meaningful when using the https protocol.

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 related parameter configurations should be checked in the "./prepare" file in the decompressed directory. Comments are not allowed. Otherwise, the environment preparation check will fail and "ConfigParser.NoOptionError: No option u'clair_db_password' in section: u'configuration'" related errors will be reported; or comment related checks and definitions in "./prepare", but please note that there are too many associations in the file. It is recommended to modify the "harbor.cfg" file.

ldap_url: ladp related settings. If ldap authentication is not used, the following related parameter configurations should be checked in the "./prepare" file in the decompressed directory. Comments are not allowed. Otherwise, the environment preparation check will fail and "ConfigParser.NoOptionError: No option u'ldap_timeout' in section: u'configuration'" related errors will be reported. Alternatively, comment related checks and definitions in "./prepare". However, please note that there are too many associations in the file. It is recommended to modify the "harbor.cfg" file.

ldap_scope:

self_registration: self-registration is enabled by default, off is disabled

token_expiration: token validity period, default is 30 minutes

project_creation_restriction: Create project permission control, the default is "everyone", can be set to "adminonly"

verify_remote_cert: Whether to use SSL verification when communicating with the remote registry

Other default values

4. Install docker-compose

yum install docker-compose

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

6. Other physical machines docker link to this machine

vi /etc/docker/daemon.json

join in

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

7. Login

docker login HarborIp

Summarize

The above is the whole process of installing and configuring Harbor1.7 on CentOS7.5 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Detailed steps for installing Harbor, a private Docker repository
  • Architecture and component description of docker private library Harbor
  • Docker builds a private warehouse (registry, harbor)
  • Detailed explanation of building a Docker private image repository based on Harbor
  • Jupyter notebook references from pyecharts.charts import Bar and reports an error when running
  • Detailed explanation of CentOS7 installation and configuration of vsftp to build FTP

<<:  Vue+ssh framework to realize online chat

>>:  What should I do if I want to cancel an incorrect MySQL command?

Recommend

JS implements Baidu search box

This article example shares the specific code of ...

Steps to package and release the Vue project

Table of contents 1. Transition from development ...

HTML n ways to achieve alternate color code sample code

This article mainly introduces the sample code of...

Example of adding and deleting range partitions in MySQL 5.5

introduce RANGE partitioning is based on a given ...

Some thoughts and experience sharing on web page (website) design and production

First, before posting! Thanks again to I Want to S...

Summary of MySQL log related knowledge

Table of contents SQL execution order bin log Wha...

Summary of XHTML application in web design study

<br />Generally speaking, the file organizat...

Vue implements image dragging and sorting

This article example shares the specific code of ...

Detailed explanation of the relationship between Vue and VueComponent

The following case reviews the knowledge points o...

How to deploy HTTPS for free on Tencent Cloud

Recently, when I was writing a WeChat applet, the...

What you need to know about MySQL auto-increment ID

Introduction: When using MySQL to create a table,...