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

Example usage of Linux compression file command zip

The ".zip" format is used to compress f...

Operate on two columns of data as new columns in sql

As shown below: select a1,a2,a1+a2 a,a1*a2 b,a1*1...

How to enable the root account in Ubuntu 20.04

After Ubuntu 20.04 is installed, there is no root...

Three uses and differences of MySQL not equal

Judgment symbols are often used in MySQL, and not...

JavaScript to achieve text expansion and collapse effect

The implementation of expanding and collapsing li...

Sharing the structure and expression principles of simple web page layout

Introduction to structure and performance HTML st...

Example code for using Nginx to implement 301 redirect to https root domain name

Based on SEO and security considerations, a 301 r...

Implementation of LNMP for separate deployment of Docker containers

1. Environmental Preparation The IP address of ea...

Docker build PHP environment tutorial detailed explanation

Docker installation Use the official installation...

Some basic instructions of docker

Table of contents Some basic instructions 1. Chec...

Detailed explanation of CSS3 Flex elastic layout example code

1. Basic Concepts //Any container can be specifie...

Detailed example of using js fetch asynchronous request

Table of contents Understanding Asynchrony fetch(...