Linux

Harbor Installation on Linux

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

Dineshreddy Kayithi

Rooted in a solid academic foundation with a Bachelor's Degree in Information Technology, my career has been deeply entrenched in designing, deploying, and managing enterprise-grade infrastructure across virtualization, cloud-native, and containerized environments. Industry certifications from VMware, AWS, Microsoft, and Kubernetes validate my hands-on expertise in architecting scalable, resilient systems spanning hypervisors, public/hybrid cloud platforms, and container orchestration frameworks. I'm driven by a relentless pursuit of emerging technologies — translating them into production-ready solutions that solve complex operational challenges.

View Comments

Share
Published by
Dineshreddy Kayithi
Tags: Linux

Recent Posts

Red Hat OpenShift VM Micro-segmentation Using MultiNetworkPolicy

OpenShift Virtualization allows virtual machines (VMs) to run natively on Kubernetes alongside container workloads. Using…

2 weeks ago

Red Hat OpenStack Services on OpenShift (RHOSO)

Red Hat OpenStack Services on OpenShift (RHOSO) provides the foundation to build a private or public…

4 weeks ago

Kubernetes Cluster Deployment

Kubernetes (often shortened to “K8s”) is an open-source system for automating the deployment, scaling, and…

1 month ago

Ceph cluster on a single machine

Ceph is an open-source, distributed storage platform that provides object, block, and file storage in…

1 month ago

vSphere to OpenShift VM Migration

Prerequisites Red Hat OpenShift cluster deployed and operational You can refer to my earlier post…

2 months ago

Installing OpenShift 4.21 in an air-gapped on-premises/BareMetal environment using Agent-based deployment

Agent-Based Installation The Agent-based installation method provides the flexibility to boot your on-premise servers in…

3 months ago