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

Docker warehouse Harbor

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

Share

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

Before we begin

I have written two articles about Docker warehouse before. how many steps does it take to install the Docker image into the warehouse? Can images be distributed without Docker repositories? Today, we are going to talk about how to deploy a private warehouse. The protagonist is the famous VMware open source project Harbor,VMware. As the first brother in the virtual industry, VMware has strong technical strength and has a wide range of users, enterprise-level products vSphere ESXi, household-level Workstation are its masterpieces.

Harbor has been established and used by VMware China R & D Center since 2014, and opened up to the community in 2016. Harbor joined the Cloud Native Computing Foundation (CNCF) in August 2018. The Harbor project is deeply rooted in the Chinese community, so it is very popular among Chinese users.

The Harbor version is updated quickly. The latest stable version is V1.82. If you need to download the latest version or submit the Issue, you can find the project in github.

Currently, the v1.4.0 harbor repository is still in use.

Some concept image repositories

Is the place where docker images are centrally stored. For example, the mirror address hub.zongming.net/dongnan/centos:6.7

Hub.zongming.net is the registration server (registry)

Dongnan is the name of the warehouse (user)

Centos is the name of the mirror

: 6.7 is the mirror version number.

The registration server is the specific server that manages the warehouse. There can be multiple repositories on each server, multiple images under each warehouse, and multiple tags for each image. Public Warehouse

Docker officially maintains a public repository, Docker Hub, which already contains more than 15000 images (2016). Most of the requirements can be found in Docker Hub. Private warehouse

In some cases, it may not be convenient to use Docker Hub public repositories (such as python images containing business source code). Docker officially provides docker-registry tools to create a private repository, but docker-registry lags far behind Harbor in terms of easy to use xing, functional xing, and so on. Deployment

Harbor supports deployment in Docker environments.

Environmental requirements

Linux system, ubuntu server 16.04+ or higher LTS version is recommended.

Docker 17.06.0 Mercce +, the latest stable version is recommended.

Docker-compose 1.23.0 +, the latest stable version is recommended.

If you do not have docker installed, you can refer to this article

If you do not have docker-compose installed, you can refer to the article "rel=" nofollow ">.

Deployment mode

Because Harbor contains multiple images, network timeout may be encountered during deployment. Offline installation is recommended.

Take v1.8.2 as an example, offline installation package download address

Configuration option

Tar zxf harbor-offline-installer-v1.8.2.tgzcd harbor/vim harbor.cfg

The parameters of the configuration file are divided into two parts, required parameters and optional parameters.

The required parameters include: hostname: host name. Here you choose to use the real domain name. Data_volume: harbor data volume directory. Harbor_admin_password: administrator's account password. Database: password: database root user's password jobservice: max_job_workers: the maximum number of processes. The default value is 10. I choose the default value. Log: log level, log rotation, log size, log location, and other options can be kept by default. Optional parameters should be noted that if you use HTTPS then you need to configure https: uncomment port: 443 uncomment certificate: uncomment and your crt certificate file private_key: uncomment as well as your key private key file my https configuration example is as follows. Https:# # https port for harbor, default is 443port: 444th # The path of cert and key files for nginx certificate:. / keys/server.crt private_key:. / keys/server.key for more parameter configuration, please see:

Https://github.com/goharbor/harbor/blob/master/docs/installation_guide.md

Execute the shell script to start the installation automatically

Installation completed

Use

Enter your warehouse address in the browser

Try to create a project such as demo after logging in

Finally, leave a practical assignment.

After deploying the Harbor repository, try to push an image for the created project demo and download it on other docker hosts.

Hint, log in to the repository, mark the image, push the image, download the image can refer to this article.

Referenc

When you first get to know docker warehouse, please add a link description.

Docker configuration remote warehouse please add a link description

Please add a link description for the system trust self-signed certificate

Using Harbor to realize the management and operation and maintenance of container image warehouse, please add a link description

Please add a link description to deploy the harbor repository

Https://github.com/goharbor/harbor/blob/master/docs/installation_guide.md

Doker&k8s Qun [703906133]

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