Linux4Ever

Dies ist eine alte Version des Dokuments!


Nachfolgend soll die Installation und Konfiguration von Harbor beschrieben werden.

<blockquote>

Harbor Registry ist eine der bekanntesten und am weitesten verbreiteten Open Source-Lösungen für das Speichern und Verwalten von Docker Images. Dabei geht der Funktionsumfang von Harbor deutlich über den Umfang herkömmlicher Registries, wie zum Beispiel Docker Hub hinaus. (Quelle: bnerd.com)

</blockquote>


1 - Installation

Harbor kann von der Seite „goharbor.io“ (dort dann oben auf „Getting Started“ klicken und auf dieser Seite dann unter Punkt 2 auf „Download the Harbor Installer“). Die verschiedenen Versionen sind auch auf der Release-Seite „https://github.com/goharbor/harbor/releases“ zu finden. Nachfolgend wird der Offline-Installer genutzt. Zum Zeitpunkt der Dokumentation war Version 2.14.1 aktuell.


1.1 - Herunterladen der Installationsdatei

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

--2025-12-18 22:14:12--  https://github.com/goharbor/harbor/releases/download/v2.14.1/harbor-offline-installer-v2.14.1.tgz\\
Auflösen des Hostnamens github.com (github.com)… 140.82.121.3\\
Verbindungsaufbau zu github.com (github.com)|140.82.121.3|:443 … verbunden.\\
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found

...

Verbindungsaufbau zu release-assets.githubusercontent.com (release-assets.githubusercontent.com)|185.199.111.133|:443 … verbunden.\\
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK\\
Länge: 680961237 (649M) [application/octet-stream]\\
Wird in »harbor-offline-installer-v2.14.1.tgz« gespeichert.

harbor-offline-installer-v2.14.1.tgz  100%[=========================================================================>] 649,42M  18,9MB/s    in 35s

2025-12-18 22:14:47 (18,6 MB/s) - »harbor-offline-installer-v2.14.1.tgz« gespeichert [680961237/680961237]

~#

1.2 - Archiv entpacken

~# tar xzvf harbor-offline-installer-v2.14.1.tgz

harbor/harbor.v2.14.1.tar.gz\\
harbor/prepare\\
harbor/LICENSE\\
harbor/install.sh\\
harbor/common.sh\\
harbor/harbor.yml.tmpl

~#

1.3 - Verschlüsselung

Der Harbor bringt selbst keine Zertifikate mit. Diese müssen manuell erstellt oder von Drittanbietern besorgt werden. Let's Encrypt bietet aktuell noch kostenlose Zertifikate an. Zur Generierung wird das Programm „certbot“ verwendet, welches Zertifikate erstellt. Es wird vorausgesetzt, dass der Port 80 oder 443 von außen erreichbar ist, was temporär im Router (zum Beispiel in der FirtzBox) eingeschaltet werden muss.


1.3.1 - Software installieren

~# apt install certbot

Installiere:\\
certbot

Installiere Abhängigkeiten:\\
libicu76        python3-certbot         python3-configobj     python3-icu      python3-parsedatetime\\
python3-acme    python3-cffi-backend    python3-cryptography  python3-josepy   python3-pytz\\
python3-bcrypt  python3-configargparse  python3-distro        python3-openssl  python3-rfc3339

Vorgeschlagene Pakete:\\
python-certbot-doc      python3-certbot-nginx  python-configobj-doc     python3-cryptography-vectors\\
python3-certbot-apache  python-acme-doc        python-cryptography-doc  python-openssl-doc

Zusammenfassung:\\
Aktualisiere: 0, Installiere: 16, Entferne: 0, Aktualisiere nicht: 0\\
Herunterlade-Größe: 12,3 MB\\
Benötigter Platz: 50,3 MB / 11,8 GB verfügbar

Fortfahren? [J/n] J\\
...

~#

1.3.2 - Zertifikat erstellen

<code>~# certbot certonly –standalone -d slxharbor.fritz.box




.Ende des Dokuments

container/harbor/start.1766094435.txt.gz · Zuletzt geändert: von sborne