In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
This article shares with you a tutorial on Docker installation and deployment of Harbor. I believe that most people do not know how to install and deploy, in order to let you learn, to collect information about Docker installation and deployment of Harbo.
Harbor Overview Harbor is VMware's open source enterprise Docker Registry project the advantages of Harbor role-based control image-based replication strategy support LDAP/AD image deletion and garbage collection graphics UI audit RESTful APIHarbor architecture
Proxy
Accept requests from browsers and Docker clients through a front-end reverse proxy and forward the requests to different back-end services
Registry
Responsible for storing Docker images. And process the docker push/pull command
Core services
Core functions of Harbor, including UI, webhook, token service UI: provide web pages token: token Webhook: callback mechanism in micro services
Database
Provide database services for core services
Log collector
Log is responsible for collecting other components for later analysis of the Docker private warehouse architecture topology:
Users request to access Core services,UI through Proxy reverse proxy to provide web interface and token token. The server will give you a series of serial numbers after you log in for the first time, and the next time you log in directly, the image information and attributes you need to download will be stored in the following database, and then go to the registry private warehouse to retrieve the image through webhook callback. This series of operations are stored in the log. Deployment of Harbor service instance demo 1. Basic environment deployment # Mount resource bundle mount.cifs / / 192.168.142.1/docker / mnt switch mount directory cd / mnt# replication control command to the system cp docker-compose / usr/local/bin# to view version information docker-compose-v# decompress harbor resource package tar zxvf harbor-offline-installer-v1.2.2.tgz-C / usr/local2. Configure Harbor parameter # switch to the decompression point directory cd / usr/local/harbor/# edit Harbor configuration vim harbor.cfg # specify the private library address hostname = 192.168.142.14 on the fifth line start Harbor./install.sh3 using the script. Remote login Harbor# login harbor, default administrator admin, password Harbor12345docker login-u admin-p Harbor12345 http://127.0.0.1# turn off firewall and security features systemctl stop firewalld.servicesetenforce 0
Log in to Harbor using a browser
4. Set up the project and upload the mirror image to Harbor
# download Image docker pull cirros# tag Image docker tag cirros 127.0.0.1/my/cirros:v1# upload Image to Harbordocker push 127.0.0.1/my/cirros:v1
# Log out of docker logout http://127.0.0.15. Create a new Harbor user
# New users log in to docker login-u czt-p Czt12345 http://192.168.142.149 remotely
You can add users and roles to the project
6. Use docker-compose management Harbor# to remove the Harbor service container while retaining the mirrored data / database docker-compose down-v# execute scripts to populate the configuration. / prepare# recreate and start the Harbor service container docker-compose up-d# error resolution # turn off the firewall, restart dockersystemctl restart dockerdocker-compose up-d# if you need to redeploy Need to remove all data of Harbor service container # first remove Harbor service container while retaining mirror data / database docker-compose down-v # Delete all data of harbor service container rm-rf / data/database/rm-rf / data/registry/
After reading this article, have you learned to install and deploy Harbor? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel. Thank you for reading.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.