Deploying Harbor Registry And See What’s New With v 1.9

Deploying Harbor Registry And See What’s New With v 1.9

Harbor Registry is an open source cloud native registry, which stores and scans container images for security vulnerability, I was deploying Harbor registry as my container repository, so I thought to share this with my followers. Also, Harbor has released it’s latest release, v1.9 and let’s see what are those added features. VMware use Harbor Registry to store, and distribute container images for VMware enterprise PKS.

As I mentioned earlier Harbor has released it’s v 1.9, and it comes with some added features. You can follow the latest releases, and updates in their GitHub Page. Download files are available in release page as online and offline download versions.

Read More: See What’s Inside In Your Kubernetes Cluster With VMware Octant

I deployed Harbor registry in Ubuntu 18.04 Bionic Beaver LTS version. I created a folder called “Harbor” to store all my files, and downloaded the offline installer.

Deploying Harbor Registry : downloaded

I have extracted the downloaded file, and there were few files in the downloaded folder.

Deploying Harbor Registry extracted

Basically, there are two main parameters should be configured before proceed with the Harbor configuration, “System level parameters” and “User level parameters“. Also, supported version of Docker and Docker Compose should be installed.

I installed Docker CE, in this deployment. If you need to see how to install Docker CE on ubuntu, follow my previous article. To install Docker Compose follow the below procedure.

Execute the below command to download the current stable version of Docker Compose.

sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Change the permissions as below

sudo chmod +x /usr/local/bin/docker-compose
Deploying Harbor Registry docker compose

Update the “harbor.yml” file to edit the parameters.

Deploying Harbor Registry harbor.yml

Below parameters are required to run Harbor:

  • hostname
  • data_volume
  • harbor_admin_password
  • database
    • password
    • max_idle_conns
    • max_open_conns
  • jobservice
    • max_job_workers
  • log
    • level
    • local
      • rotate_count
      • rotate_size
      • location
    • external_endpoint
      • protocol
      • host
      • port

If you don’t edit this according to your requirement, the default values would be applied.

In my deployment, I have updated only the hostname with my local IP address.

Deploying Harbor Registry edit parameters

After that I started the installation executing the “install.sh” file.

Wait until it completes the installation.

Now access the URL listed at the end, and login to the Harbor registry with the default username and password.

Default Usernmame: admin

Default Password: Harbor12345

You can change this in the “harbor.yml” file before the installation

Projects will be listed, and “library” is created by default

Basic system configuration options are available under “Configuration

Harbor API Explorer can be easily accessible by clicking the button displayed at the bottom.

You’ll be redirecting to a new web interface, where you can access the Harbor API functions

API models can be viewed with the information as below

Click to rate this post!
[Total: 2 Average: 5]

Leave a Reply

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