Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Verwenden Sie den Managed Harbor Service (MHS) von Google Distributed Cloud (GDC) für Air-Gap-Umgebungen, um in jedem Projekt eine Harbor-Registrierungsinstanz zu erstellen. Eine Harbor-Registry-Instanz dient als zentrales Repository zum Speichern und Verwalten von Container-Images in einer cloudnativen Umgebung. Es erweitert die Funktionen der Open-Source-Docker-Distribution.
Folgende Einschränkungen gelten:
Sie können in jedem Projekt nur eine Instanz erstellen.
Instanzen sind isoliert und nutzen keine gemeinsamen Daten oder Rechenressourcen.
Hinweise
Zum Erstellen von Harbor-Registrierungsinstanzen benötigen Sie die erforderlichen Identitäts- und Zugriffsrollen:
Harbor-Instanzadministrator: Gewährt Lese- und Schreibzugriff auf alle Harbor-Ressourcen.
Bitten Sie Ihren IAM-Administrator der Organisation, Ihnen die Rolle „Harbor Instance Admin“ (harbor-instance-admin) zuzuweisen.
Harbor-Registry-Instanz erstellen
So erstellen Sie eine Harbor-Registrierungsinstanz in Ihrem Projekt:
Console
Führen Sie in der GDC Console die folgenden Schritte aus:
Klicken Sie im Navigationsmenü im Bereich CI/CD auf den Link Harbor Container Registry.
Klicken Sie auf Instanz erstellen.
Geben Sie unter Instanzname einen Namen für die Instanz ein.
Optional: Aktivieren Sie unter Projects (Projekte) die Ein/Aus-Schaltfläche Create a default project when creating this instance (Standardprojekt beim Erstellen dieser Instanz erstellen), um ein Standardprojekt für diese Harbor-Instanz zu erstellen.
Geben Sie unter Projektname einen Projektnamen ein.
Lesen Sie die Nutzungsbedingungen für Harbor und aktivieren Sie das Kästchen, wenn Sie die Bedingungen akzeptieren.
Der Status muss Wird ausgeführt und der Name einen externen Link mit dem Namen der neu erstellten Harbor-Instanz enthalten.
Nachdem die Instanz erstellt wurde und der StatusBereit lautet, klicken Sie auf den externen Link auf der Seite, um die Web-UI der Harbor-Instanz aufzurufen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[[["\u003cp\u003eThe Google Distributed Cloud (GDC) air-gapped Managed Harbor Service (MHS) allows the creation of a Harbor registry instance in each project for storing and managing container images.\u003c/p\u003e\n"],["\u003cp\u003eOnly one Harbor instance can be created per project, and these instances are isolated without shared data or compute resources.\u003c/p\u003e\n"],["\u003cp\u003eTo create an instance, users require the Harbor Instance Admin role, which grants full read and write access to all Harbor resources.\u003c/p\u003e\n"],["\u003cp\u003eInstances can be created via the GDC console by navigating to the Harbor Container Registry and providing an instance name, or via the command line using the \u003ccode\u003egdcloud harbor instances create\u003c/code\u003e command, specifying the instance and project names.\u003c/p\u003e\n"],["\u003cp\u003eWhen creating an instance, users can opt to have a default project created as well, and should the instance be successfully created, it will show up as ready in the console, and have an external link to access the web UI.\u003c/p\u003e\n"]]],[],null,["# Create Harbor registry instances\n\nUse the Google Distributed Cloud (GDC) air-gapped Managed Harbor Service (MHS) to create a\nHarbor registry instance in each project. A Harbor registry instance serves as a\ncentral repository for storing and managing container images in a cloud-native\nenvironment. It extends the capabilities of the open-source Docker distribution.\nThe following restrictions apply:\n\n- You can only create up to one instance in each project.\n- Instances are isolated and don't share any data or compute resources.\n\nBefore you begin\n----------------\n\nTo create Harbor registry instances, you must have the necessary identity and access roles:\n\n- Harbor Instance Admin: grants read and write access to all Harbor resources. Ask your Organization IAM Admin to grant you the Harbor Instance Admin (`harbor-instance-admin`) role.\n\nCreate a Harbor registry instance\n---------------------------------\n\nFollow these steps to create a Harbor registry instance in your project. \n\n### Console\n\nIn the GDC console, follow these steps:\n\n1. Click the **Harbor Container Registry** link in the section **CI/CD** in the navigation menu.\n2. Click **Create Instance**.\n3. Enter a name for the instance in **Instance name**.\n4. Optional: In **Projects** , enable the **Create a default project when creating this instance** toggle to create a default project for this Harbor instance.\n\n 1. Enter a project name in **Project Name**.\n5. Read the **Harbor managed Terms of Service** and enable the checkbox if you accept the terms.\n\n6. The **Status** must show **In progress** , and the **Name** must show an external link containing the name of your newly created Harbor instance.\n\n7. After the instance is created and the **Status** shows **Ready**, click the external link on the page to visit the web UI of the Harbor instance.\n\n### CLI\n\nCreate the Harbor registry instance: \n\n gdcloud harbor instances create \u003cvar translate=\"no\"\u003eINSTANCE\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eINSTANCE\u003c/var\u003e: the name of the instance.\n- \u003cvar translate=\"no\"\u003ePROJECT\u003c/var\u003e: the name of the GDC project in which to create the instance."]]