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

Sample code for implementing interface signature with Vue+Springboot

1. Implementation ideas The purpose of interface ...

Vue implements login verification code

This article example shares the specific code of ...

Vue integrates a rich text editor that supports image zooming and dragging

need: According to business requirements, it is n...

WeChat applet to determine whether the mobile phone number is legal example code

Table of contents Scenario Effect Code Summarize ...

JavaScript to achieve a simple carousel effect

What is a carousel? Carousel: In a module or wind...

Have you carefully understood Tags How it is defined How to use

Preface : Today I was asked, "Have you carefu...

Two examples of using icons in Vue3

Table of contents 1. Use SVG 2. Use fontAwesome 3...

Coexistence of python2 and python3 under centos7 system

The first step is to check the version number and...

Perfect solution for theme switching based on Css Variable (recommended)

When receiving this requirement, Baidu found many...

Use IISMonitor to monitor web pages and automatically restart IIS

Table of contents 1. Tool Introduction 2. Workflo...

Example code for text origami effect using CSS3

Preface This article mainly shares with you an ex...

How to parse the attribute interface of adding file system in Linux or Android

The first one: 1. Add key header files: #include ...

MySQL data analysis storage engine example explanation

Table of contents 1. Introduce cases 2. View the ...

Detailed explanation of the difference between var, let and const in JavaScript

Table of contents As a global variable Variable H...