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

How to install Solr 8.6.2 in Docker and configure the Chinese word segmenter

1. Environment version Docker version 19.03.12 ce...

The magic of tr command in counting the frequency of English words

We are all familiar with the tr command, which ca...

How to handle long data when displaying it in html

When displaying long data in HTML, you can cut off...

A brief discussion on how to customize the host file in Docker

Table of contents 1. Command 2. docker-compose.ym...

MySQL query syntax summary

Preface: This article mainly introduces the query...

Examples of using provide and inject in Vue2.0/3.0

Table of contents 1. What is the use of provide/i...

Simple CSS text animation effect

Achieve results Implementation Code html <div ...

Introduction to the use of HTML element noscript

noscript definition and usage The noscript elemen...

How to view and optimize MySql indexes

MySQL supports hash and btree indexes. InnoDB and...

Detailed examples of the difference between methods watch and computed in Vue.js

Table of contents Preface introduce 1. Mechanism ...

MySQL 4G memory server configuration optimization

As the number of visits to the company's webs...

Causes and solutions for MySQL master-slave synchronization delay

For historical reasons, MySQL replication is base...

How to dynamically add ports to Docker without rebuilding the image

Sometimes you may need to modify or add exposed p...

HTML+Sass implements HambergurMenu (hamburger menu)

A few days ago, I watched a video of a foreign gu...