How to verify Harbor 1.1 is successfully installed

In the previous guide we installed and configured Harbor on Photon OS.  In this guide I will walk you through testing that your Harbor registry installation is working and you can push images to it.

Pre-Reqs

  • Harbor Registry already installed see my guide here
  • Photon OS with at least 1 vCPU 2GB RAM and at least 5GB 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, login to Harbor portal as admin with the following

admin

Harbor12345

Click on Users tab then click + Users

Enter credentials for the new user and click ok

Now click on Projects then library

Now click Members then + Member

add the user we just created as Project Admin and press ok

Now login to a machine running Docker, I am using Photon OS

Since we installed Harbor with an Insecure Registry we need to let Docker know, edit the following file

Enter the following then hold shift and press ZZ to save

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

Now restart docker with the following command

Now login to the registry

docker login harbor.corp.local

Now pull an image down

docker pull vmwarecna/nginx

Now tag the image

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

Now push the image

docker push harbor.corp.locl/library/myimage

Verify that it made it to Harbor

 Enjoy!
Remember sharing is caring!

One Reply to “How to verify Harbor 1.1 is successfully installed”

  1. Pingback: Getting started with Harbor 1.1 on Photon OS – 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.