Go to this harbor registry repository and check the latest version:

https://github.com/goharbor/harbor/releases

Change the <version> to the latest version of harbor registry:

wget <https://github.com/goharbor/harbor/releases/download/><version>/harbor-online-installer-<version>.tgz
tar xzvf harbor-online-installer-<version>.tgz

cd harbor

Go to harbor.yml.tmpl file inside the ./harbor directory

nano harbor.yml.tmpl

# Change these:
hostname: registry.kube.slc.net

https:
	certificate: /path/to/crt
	private_key: /path/to/key

harbor_admin_password: Harbor12345           # Change this to your own password
# Execute bash to prepare all the configuration 
./prepare

# Apply all the configuration and run the docker images
./install.sh

To install harbor with a docker image vulnerability scanner, you just need to add --with-trivy on the command

./install.sh --with-trivy

Important Notes: