Harbor Overview
Harbor is open source by the company VMWare image container warehouse. In fact, Harbor is on Docker Registry corresponding enterprise-class scalability, to obtain a more widely used, these new enterprise-class features include: user management interface, role-based access control, AD / LDAP integration and audit logs etc., sufficient to meet basic business needs.
The official address
https://vmware.github.io/harbor/cn/
harbor address on the GitHub
https://github.com/goharbor/harbor
Harbor Component Function
harbor-adminserver Configuration Management Center
harbor-db MySQL database
harbor-jobservice responsible mirrored copy
harbor-log recording operation log
harbor-ui Web pages and API management
nginx front-end proxy, is responsible for the front page and image uploading and downloading forwarding
redis session
registry mirrored storage
Harbor installation and deployment
Harbor install three ways:
• Online installation: Docker Hub Harbor download related images, so installation is very small package
• Offline installation: installation package contains the relevant image deployment, so the installation package is very large
• OVA Setup: When a user with vCenter environment, use this installation program, start Harbor after deployment OVA
Need to be installed before installing Docker-Compose Harbor
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s) - $ (uname -m ) "-o / usr / local / bin / Docker-Compose
the sudo the chmod + X / usr / local / bin / Docker-Compose
the sudo LN -s / usr / local / bin / Docker-Compose / usr / bin / Docker-Compose
docker-compose --version
mounting Harbor
## offline download package
wget https://github.com/goharbor/harbor/releases/download/v1.10.1/harbor-offline-installer-v1.10.1.tgz
the tar-xvf Harbor offline v1.10.1.tgz--installer
cd Harbor
## harbor.cfg modify the contents of the file
vi harbor.cfg
hostname = ip address or domain name
ui_url_protocol = HTTP
harbor_admin_password = 123456
./prepare
./install.sh
Installation, and start with a docker-compost view service
docker-compose start ## to start the service
[root @ Server Harbor] # Docker-PS Compose
the Name the Command State Ports
---------------- -------------------------------------------------- -------------------------------------------------- -----------------
Harbor AdminServer /harbor/start.sh-Up (Healthy)
Harbor /entrypoint.sh Postgres DB-Up (Healthy) 5432 / TCP
Harbor-JobService / Harbor Up /start.sh
Harbor-log / bin / SH -C / usr / local / bin / ... Up (Healthy) 127.0.0.1:1514->10514/tcp
Harbor UI /harbor/start.sh-Up (Healthy )
Nginx Nginx daemon -g OFF; Up (Healthy) 0.0.0.0:443->443/tcp, 0.0.0.0:4443->4443/tc P, 0.0.0.0:80->80/tcp
Redis Docker-EntryPoint. sh redis ... Up 6379 / tcp
registry /entrypoint.sh /etc/regist ... Up (healthy) 5000/tcp
====================================================
Http://10.0.0.81 input into the Harbor Management Interface
The default admin user login password Harbor12345
## Creating users and assigning privileges