Forum Navigation
You need to log in to create posts and topics.

Harbor installation and configuration How To


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.

Download Harbor package

Extract the file to your favorite directory and change to it.

Set SSL Certificates to enable HTTPS image pull

openssl genrsa -out ca.key 4096
openssl genrsa -des3 -out server.key 4096
openssl req -new -key server.key -out server.csr
cp server.key
openssl rsa -in -out server.key
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
mkdir certs
cp server.key server.crt certs/


edit harbor.yml file and set all SSL options to enable

# https related config
# https port for harbor, default is 443
port: 443
# The path of cert and key files for nginx
certificate: /home/harbor/certsserver.crt
private_key: /home/harbor/certsserver.key

Run the following commands to update OS packages and install docker and finally and install Harbor

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli
pip install docker-compose
apt install python-pip
pip install docker-compose

*Note: the above installation commands are compatible with Debian & Ubuntu. to install docker on redhat, CentOS, compatible go to this guide