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

Detailed examples of converting rows to columns and columns to rows in MySQL

mysql row to column, column to row The sentence i...

Analysis of the process of implementing Nginx+Tomcat cluster under Windwos

Introduction: Nginx (pronounced the same as engin...

MySQL 8.0.13 download and installation tutorial with pictures and text

MySQL is the most commonly used database. You mus...

Detailed explanation of js's event loop event queue in the browser

Table of contents Preface Understanding a stack a...

Solution to the Docker container cannot be stopped and deleted

Find the running container id docker ps Find the ...

HTTP Status Codes

This status code provides information about the s...

Example of how to configure nginx to implement SSL

Environmental Description Server system: Ubuntu 1...

Solution to occasional crash of positioning background service on Linux

Problem Description In the recent background serv...

How to use docker+devpi to build local pypi source

Some time ago, I needed to use pip downloads freq...

Summary of JS tips for creating or filling arrays of arbitrary length

Table of contents Preface Direct filling method f...

Implementation of vue3.0+vant3.0 rapid project construction

Table of contents 1. Project Construction 2. Vue3...

Analysis and treatment of scroll bars in both HTML and embedded Flash

We often encounter this situation when doing devel...

The difference between delete, truncate, and drop and how to choose

Preface Last week, a colleague asked me: "Br...

Introduction to Sublime Text 2, a web front-end tool

Sublime Text 2 is a lightweight, simple, efficien...