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

Tutorial on using Harbor1.5.0 Warehouse

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

Share

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

# 1. Project management

In the Harbor repository, any image must have a project of its own before it can be push to regsitry. There are two forms of warehouses:

Public: any user can access the images in this repository. Private: only users who have been granted permission can access the images in this repository.

When you log in to Harbor's UI, you can create a new project, where you can choose to tick before the public to create a public project. If not, it defaults to a private project, as shown in the figure below.

After the project is created, you can browse the project's image repository, members, replication, tags, logs, and configuration management, as shown in the following figure.

There are two browsing modes for the warehouse, which can be selected by clicking the button in the upper right corner, as shown in the following figure

Click Log to view all the log information of the current project. After clicking Advanced search, you can match the log record according to the time period and action, as shown below.

two。 Project member management

You can add members of different roles to the project, but the members must be users who have registered on Harbor. Here you can select project administrators, developers, and visitors, as shown in the following figure.

After adding, you can also change the identity of a user or remove a user from the project after checking a user, as shown in the following figure

3. Mirror replication

Mirror replication is used to copy repositories from one Harbor instance to another.

This function is project-oriented. First, the system administrator needs to set a role for the project. When the defined trigger triggers the condition, all repositories under this project will be copied to another remote warehouse. Each warehouse runs a job, and if there is no project in the remote warehouse, a new project is automatically created in the remote project, but if the project exists on the remote warehouse, but the defined user does not have access to that project, then the replication process will fail.

Due to network reasons, the replication process may be interrupted, and if replication is interrupted, job will try to replicate again after a few minutes until the network is available.

Note: there will be incompatibility between versions before Harbor0.3.5 (including) and versions after 0.3.5.

Create a mirror replication rule

First, add a remote warehouse, click Warehouse Management, and then create a new target, such as the figure below. After completing the information, you can click on the test connection to test whether it can be connected.

Add replication Rul

Fill in the required items as required, filter, you can filter the images that are not copied according to the image name or signature. The target is the target created above. There are three trigger modes: manual, immediate, timing, and after selecting manual, you will choose whether to copy immediately. If not, you can choose when to start copying according to your needs. If you choose to copy immediately, you will start copying immediately after saving. If you choose to start replication immediately, the immediate replication option and the option to delete local and remote mirrors appear, and if you select timing, a date selection appears.

View, start, stop copying job

After you start a replication job, the details of this task will appear in the replication task below. Click Log to view the replication progress.

4. Label management

Harbor provides two different types of tags

Global horizontal tags: can only be used by the system administrator to manage the entire system, these tags can be added to the project level tags in any project: used by the project administrator, these tags can be added to the image in this project.

System administrator, you can list, create, edit, and delete labels at the global level, as follows

Project administrators and system administrators can list, create, edit, and delete project tags, as follows

Add or remove tags to the image, as follows

Image filtering based on the tag, as follows

Reference: https://github.com/vmware/harbor/blob/master/docs/user_guide.md#managing

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