Docker private warehouse harbor construction process

Docker private warehouse harbor construction process

1. Preparation

1.1 harbor download

harbor download address: link add link description and then we can choose the version we need, I chose v1.8.3
You can also go

wget https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-offline-installer-v1.8.3.tgz

insert image description here

1.2 Docker installation

For docker installation and yum source installation, please refer to the article "Docker Getting Started Tutorial (Part 2)".

2. Build

2.1 Unzip harbor

tar -zxvf harbor-offline-installer-v1.8.3.tgz -C /opt/

insert image description here

2.2 Modify the configuration file

Modify the harbor.yml file under the harbor directory

insert image description here

This needs to be modified
hostname here is your ip
harbor_admin_password: This is the password of the harbor portal. The default is Harbor12345

2.3 Install docker-compose

harbor relies on docker-compose for stand-alone orchestration. So we need to install docker-compose

yum install docker-compose -y

insert image description here

2.4 Edit docker daemon.json

Modify the /etc/docker/daemon.json file

vim /etc/docker/daemon.json

Add to

“insecure-registries”:[“your harbor ip”]

insert image description here

Restart Docker

systemctl restart docker

2.5 Start Harbor

./install.sh

insert image description here

You can use the command to check if there is any

docker-compose ps

insert image description here

2.6 Browser Access

Just use harbor's ip to access it. The default port is 80.

insert image description here

3. Testing

Log in to the harbor portal

3.1 New Project

insert image description here

3.2 Push the image to harbor 3.2.1 Login

docker login warehouse ip

insert image description here

3.2.2 Tagging

Let me take a look at my local image first

insert image description here

Then I use the alpine 3.10.3 image and tag it

docker tag 965ea09ff2eb repository ip/public/alpine:v3.10.3

insert image description here

Then push our built image to the private warehouse

docker push repositoryip/public/alpine:v3.10.3

insert image description here

Finally, let's see if there is any in the harbor portal

insert image description here

That's it.

This is the end of this article about the process of building a docker private warehouse harbor. For more information about building a docker private warehouse harbor, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Tutorial on setting up and using Harbor, a mirror repository
  • Detailed explanation of building a Docker private image repository based on Harbor
  • Introduction and deployment method of Docker private warehouse Harbor
  • Steps for Docker to build a private warehouse Harbor
  • Implementation of Docker to build private warehouse (registry and Harbor)
  • Harbor visualizes private image warehouse environment and service deployment example

<<:  A brief discussion on using virtual lists to optimize tables in el-table

>>:  Detailed explanation of the principles and usage of MySQL data types and field attributes

Recommend

Vue implementation example using Google Recaptcha verification

In our recent project, we need to use Google robo...

Example of using negative margin to achieve average layout in CSS

For evenly distributed layouts, we generally use ...

Detailed explanation of Docker working mode and principle

As shown in the following figure: When we use vir...

SQL Optimization Tutorial: IN and RANGE Queries

Preface "High Performance MySQL" mentio...

MYSQL A question about using character functions to filter data

Problem description: structure: test has two fiel...

Analysis of the Neglected DOCTYPE Description

doctype is one of them: <!DOCTYPE HTML PUBLIC &...

JQuery implements hiding and displaying animation effects

This article shares the specific code of JQuery t...

Vue implements user login and token verification

In the case of complete separation of the front-e...

Drop-down menu implemented by HTML+CSS3+JS

Achieve results html <div class="containe...

Implementation of Portals and Error Boundary Handling in React

Table of contents Portals Error Boundary Handling...

JavaScript implementation of the back to top button example

This article shares the specific code for JavaScr...

How to connect to MySQL visualization tool Navicat

After installing Navicat The following error may ...

How to use Webstorm and Chrome to debug Vue projects

Table of contents Preface 1. Create a new Vue pro...