Tuesday, 12 May 2026

 Harbor Container Registry Setup


 Pre-requisite. Install Docker and Docker Compose

sudo apt update 

sudo apt install -y docker.io 

sudo systemctl enable docker 

sudo systemctl start docker


sudo usermod -aG docker ubuntu 

sudo apt install -y docker-compose 

docker-compose --version


Download the harbor installer:-

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

tar -xvf harbor-offline-installer-v2.10.0.tgz 

cd harbor


cp harbor.yml.tmpl harbor.yml 

vi harbor.yml

===================
hostname: ipaddress

http: port: 80

Comment HTTPS for insecure lab

https:

port: 443

certificate: /your/cert

private_key: /your/key

===================

/etc/docker/daemon.json


{

"insecure-registries":["ipaddress"]

}

./prepare

./install.sh


Verify by logging in :-

http://23.22.196.203 

Login via shell to push to the new repo:-


docker pull vishnumohan9447/vishnu-tomcat-app:V1

docker login 23.22.196.203 -u admin

docker tag vishnumohan9447/vishnu-tomcat-app:V1  23.22.196.203/prod/vishnu-tomcat-app:V1

docker push 23.22.196.203/prod/vishnu-tomcat-app:V1