Testing Harbor Registry with PhotonOS

Now that you have your new registry server installed let’s test it out with Photon OS.

Pre-Reqs

  • Harbor Registry installed see my guide here.
  • Photon OS with at least 1 vCPU 2GB RAM and 5GB storage to test the registry – vSphere OVA Here
  • Internet Access from Photon OS to the internet
  • A quite place where you will not get interrupted

Open a new browser to you registry server ip or hostname example http://reg.corp.local

Sign in as: Admin

Password: Harbor12345

Now click Admin then add user

Create a new user and click Add

Now click projects

Now click the library project

Now click users

Now click add member

Now add the user you just created as developer role and click save

Now open an SSH session and login to another Photon OS VM. We need to start Docker to allow connecting to an insecure registry since we used HTTP for Harbor and did not setup signed certs, use vi editor to create a file /etc/default/docker

vi /etc/default/docker

Click i and then enter the following to point to the Harbor Registry server you just created then click the esc key then hold shift and pres ZZ

DOCKER_OPTS="--insecure-registry reg.corp.local"

Now start Docker with the following command

If docker was already running just type systemctl restart docker

Now login to the registry with the following and use the user and password we setup in Harbor

Now pull an image from the Public Docker registry

docker pull vmwarecna/nginx

Now tag the image with the following


docker tag vmwarecna/nginx reg.corp.local/library/myimage

Now push it to your registry with the following

docker push reg.corp.local/library/myimage

Now go back to your Harbor web page and click repositories

Click the new image to see the details

Enjoy your new enterprise class registry complements of VMware Harbor

Remember, sharing is caring ->Tweet about this on Twitter
Twitter
0Share on Facebook
Facebook
0Share on LinkedIn
Linkedin
Share on Google+
Google+
0Email this to someone
email

One Reply to “Testing Harbor Registry with PhotonOS”

  1. Pingback: How to install an Enterprise Docker registry on Photon OS with Harbor – VMtoCloud.com

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.