Install Private Image Registry (Harbor) on Ubuntu

Nasri Adzlani
2 min readJul 24, 2022

--

Harbor is an open source registry that secures artifacts with policies and role-based access control, ensures images are scanned and free from vulnerabilities, and signs images as trusted. Harbor, a CNCF Graduated project, delivers compliance, performance, and interoperability to help you consistently and securely manage artifacts across cloud native compute platforms like Kubernetes and Docker.

Installation Steps:

Download a harbor files using wget

wget https://github.com/goharbor/harbor/releases/download/v2.4.1/harbor-offline-installer-v2.4.1.tgz

Extract a Harbor file

tar -xvzf harbor-offline-installer-v2.4.1.tgz 

Configure your harbor

cd harbor
cp harbor.yml.tmpl harbor.yml
nano harbor.yml

change hostname: harbor.example.com to hostname:http://<Your address>/ and comment https

#https:
# https port for harbor, default is 443
# port: 443
# The path of cert and key files for nginx
# certificate: /your/certificate/path
# private_key: /your/private/key/path

Install harbor

./install.shCreating network "harbor_harbor" with the default driverCreating harbor-log ... doneCreating registryctl   ... doneCreating harbor-portal ... doneCreating registry      ... doneCreating redis         ... doneCreating harbor-db     ... doneCreating harbor-core   ... doneCreating harbor-jobservice ... doneCreating nginx             ... done✔ ----Harbor has been installed and started successfully.----

Open your ip in browser

Login using default username and password is admin / Harbor12345

Congrats your harbor has been successfully installed.

--

--

No responses yet