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

Harbor of Enterprise Mirror Warehouse for introduction and Application of Docker

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

Share

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

Overview of 1.Harbor

Habor is an open source container image repository by VMWare. As a matter of fact, Habor has been extended at the enterprise level on Docker Registry, thus obtaining a wider range of applications. These new enterprise features include: management user interface, role-based access control, AD/LDAP integration and audit logs, which are sufficient to meet the basic enterprise needs. Official address: https://vmware.github.io/harbor/cn/ component function harbor-adminserver configuration management center harbor-db Mysql database harbor-jobservice is responsible for mirror replication harbor-log record operation log harbor-ui Web management page and API nginx front-end agent, responsible for front-end page and image upload / download forwarding redis session registry image storage

2.Harbor deployment

There are three ways to install Harbor: online installation: download Harbor-related images from Docker Hub, so the installation package is very small. Offline installation: the installation package contains related images for deployment, so the installation package is larger. OVA installer: use this installer when users have a vCenter environment Launch Harbor# tar zxvf harbor-offline-installer-v1.6.1.tgz# cd harbor # vi harbor.cfg hostname = 10.206.240.188 / domain name ui_url_protocol = http harbor_admin_password = 123456 # after deploying OVA. / prepare #. / install.sh is the default password

3. Basic use

1. Configure http image repository trustworthy # vi / etc/docker/daemon.json {"insecure-registries": ["reg.ctnrs.com"]} # systemctl restart docker2, tag # docker tag centos:6 reg.ctnrs.com/library/centos:63, upload # docker push reg.ctnrs.com/library/centos:64, download # docker pull reg.ctnrs.com/library/centos:6

4. Actual combat exercise

1. Install Docker Compose official website: https://docs.docker.com/compose/sudo curl-L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname-s)-$(uname-m)"-o / usr/local/bin/docker-composesudo chmod + x / usr/local/bin/docker-composedocker-compose-- version2.Harbor deployment # tar zxvf harbor-offline-installer-v1.6.1.tgz-C / opt/# Cd / opt/harbor # vi harbor.cfg hostname = 192.168.16.120 ui_url_protocol = http harbor_admin_password = Harbor12345 Note: in fact, you only need to change hostname to use harbor#. / prepare #. / install.sh view port: # netstat-tnlp | grep 80 boot automatically starts: # cat > > / etc/rc.d/rc.local

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