MY VM Details: –

OS – CentOS 8 Stream

HostName – harbor.kdinesh.in

DNS Name – kdinesh.in

Harbor Installation Steps: –

  1. Install Docker and generate an SSL certificate
  2. Download and install Harbor

                                                                                                                    (Note: – $ means command)

  1. Installing Docker :-

$ sudo yum install -y yum-utils 

—Add Docker Repo

$ sudo yum-config-manager     –add-repo     https://download.docker.com/linux/centos/docker-ce.repo

—Install Docker

$ sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin –nobest –allowerasing

— Start Docker

$ sudo systemctl start docker

—Enable the docker service

$  systemctl enable docker

Generating SSL Certificate

You can download the Script file below to generate the SSL certificate.

Run gen-harbor-certs.sh file

$ ./ gen-harbor-certs.sh

---Enter a fully qualified domain name. Certificates will be generated and copied into the /data/cert directory.

2. Download and install Harbor :-

Download the Harbor Offline installer from Harbor official portal using the following link

I downloaded Harbor v2.6.3  Version, and you can choose and download it based on your requirements.

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

Extract the downloaded tar file

—tar zxv Harbor file

$ tar zxvf harbor-offline-installer-v2.6.3.tgz

–Switch to the harbor directory

$ Cd harbor

–copy default harbor.yml.tmpl to  harbor.yml

$ cp harbor.yml.tmpl  harbor.yml

–update hostname, certificate file path, and harbor password in the harbor.yaml file

–prepare harbor installation

$ ./prepare

  –Install harbor

 $   ./install.sh –with-notary  –with-chartmuseum

 Check the docker containers status to see whether all harbor containers are running or not

 $ Docker ps -a

 Deployment completed, you can access HARBOR using http://Hostname/IP