So you have been using Docker for some time now and you want to get serious and start storing your images locally. With this guide I will show you how to install and configure VMware Harbor, an open source enterprise class Docker Registry.
Features of Harbor Registry
- Role based access control: Users and repositories are organized via ‘projects’ and a user can have different permission for images under a project.
- Image replication: Images can be replicated (synchronized) between multiple registry instances. Great for load balancing, high availability, hybrid and multi-cloud scenarios.
- Graphical user portal: User can easily browse, search repositories and manage projects.
- AD/LDAP support: Harbor integrates with existing enterprise AD/LDAP for user authentication and management.
- Auditing: All the operations to the repositories are tracked.
- Internationalization: Already localized for English, Chinese, German, Japanese and Russian. More languages can be added.
- RESTful API: RESTful APIs for most administrative operations, easy to integrate with external systems.
- Easy deployment: docker compose and offline installer.
- Photon OS 1.0 Full install with at least 1 vCPU 4GB RAM and 10GB storage – vSphere OVA Here
- Internet Access from Photon OS to the internet
- A quite place where you will not get interrupted see my guide here
First let’s install Harbor, SSH into the Registry Server you created with Photon OS and start Docker with the following
systemctl start docker
systemctl enable docker
tdnf install git
curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
git clone https://github.com/vmware/harbor
Now change to harbor/Deploy
Now click i and edit the hostname to match your servers ip address or hostname, you can also edit the mail settings and default password if you wish.
Now let’s start Harbor with the following Docker Compose command
NOTE: It will take several minutes for the operation to complete
docker-compose up -d
If everything went without errors you should be able to open a new browser to you registry server ip or hostname example http://reg.corp.local
Enjoy your new Registry complements of VMware Harbor
Also, if you plan to store a large amount of images see this Guide from Cormac Hogan on using Harbor with the vSphere Volume Driver and vSAN http://cormachogan.com/2016/07/29/using-vsphere-docker-volume-driver-run-project-harbor-vsan/
Pingback: Testing Harbor Registry with PhotonOS – VMtoCloud.com
Pingback: Using vSphere docker volume driver to run Project Harbor on VSAN - CormacHogan.com
Pingback: How to use PhotonOS with an insecure registry – VMtoCloud.com
Pingback: Using vSphere docker volume driver to run Project Harbor on VSAN - Code @ VMware
Pingback: Containers for the vSphere Admin – VMtoCloud.com
Pingback: Hybrid cloud Docker Registry with VMware Harbor – VMtoCloud.com
Pingback: Remote site replicated Docker Registries with VMware Harbor – VMtoCloud.com
Pingback: How to use VMware Admiral Container Service with Harbor Registry – VMtoCloud.com
Pingback: How to use vSphere Integrated Containers with Admiral and Harbor – VMtoCloud.com
Pingback: Containers for the vSphere Admin | pcguide.vn
No /Deploy directory only a make directory where harbor.cfg is located
no yaml file to start docker-compose after modify harbor.cfg and running ./prepare