Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
In Harbor dient ein Projekt als logische Einheit zum Organisieren und Verwalten einer Sammlung von Container-Images. Damit können Sie zusammengehörige Artefakte gruppieren und auf die gesamte Sammlung bestimmte Richtlinien, Zugriffssteuerungen und Replikationsregeln anwenden. Images können erst per Push oder Pull in Harbor übertragen werden, wenn ein Projekt erstellt wurde.
Hinweise
Zum Erstellen von Harbor-Projekten benötigen Sie die erforderlichen Rollen für Identität und Zugriff:
Harbor Project Creator: Hat Zugriff zum Verwalten der HarborInstanceProject-Ressource in seinem Projekt. Bitten Sie Ihren IAM-Administrator der Organisation, Ihnen die Rolle „Harbor Project Creator“ (harbor-project-creator) zuzuweisen.
Bevor Sie Harbor-Projekte erstellen, müssen Sie sich zuerst in der Harbor-Benutzeroberfläche anmelden, damit Harbor Ihre Identität erkennt. Wenn dieser Schritt nicht ausgeführt wird, kann die Erstellung des Harbor-Projekts in der GDC-Konsole mit einem falsch positiven Ergebnis hängen bleiben.
Harbor-Projekt erstellen
Erstellen Sie ein Harbor-Projekt mit der GDC-Konsole oder der gdcloud-CLI.
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 Harbor-Projekt erstellen.
Geben Sie den Namen des Projekts ein.
Optional: Das Scannen auf Sicherheitslücken ist standardmäßig aktiviert. Wenn Sie das automatische Scannen auf Sicherheitslücken für Harbor-Projekte deaktivieren möchten, klicken Sie auf die Ein/Aus-Schaltfläche Sicherheitslückenscan für das Projekt aktivieren. Weitere Informationen finden Sie unter Auf Sicherheitslücken prüfen.
Klicken Sie auf Erstellen.
Eine Bestätigungsmeldung wird angezeigt, dass Ihr Projekt erfolgreich erstellt wurde.
Nachdem Ihr Harbor-Projekt erstellt wurde, melden Sie sich in der Harbor-Benutzeroberfläche an, um zu bestätigen, dass Sie das Harbor-Projekt sehen können.
[[["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\u003eHarbor projects are essential for organizing and managing container images, as they group related artifacts and allow for the application of specific policies and access controls.\u003c/p\u003e\n"],["\u003cp\u003eTo create Harbor projects, users must have the Harbor Project Creator role (\u003ccode\u003eharbor-project-creator\u003c/code\u003e) and sign in to the Harbor UI beforehand to ensure proper identity recognition.\u003c/p\u003e\n"],["\u003cp\u003eHarbor projects can be created using either the GDC console, where users can navigate to the Harbor Container Registry and create projects, or the \u003ccode\u003egdcloud\u003c/code\u003e CLI with the \u003ccode\u003egdcloud harbor harbor-projects create\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eVulnerability scanning is enabled by default when creating a project, however, it can be disabled by clicking the appropriate toggle in the GDC console, or left on if you desire to scan for vulnerabilities.\u003c/p\u003e\n"],["\u003cp\u003eAfter a Harbor Project is created it is recommended to sign in to the Harbor UI to confirm that the project can be viewed.\u003c/p\u003e\n"]]],[],null,["# Create Harbor projects\n\nIn Harbor, a project serves as a logical unit for organizing and managing a\ncollection of container images. It provides a way to group related artifacts\ntogether and apply specific policies, access controls, and replication rules to\nthe entire collection. Images cannot be pushed or pulled to Harbor before a\nproject is created.\n\nBefore you begin\n----------------\n\nTo create Harbor projects, you must have the necessary identity and access\nroles:\n\n- Harbor Project Creator: has access to manage the `HarborInstanceProject` resource in their project. Ask your Organization IAM Admin to grant you the Harbor Project Creator (`harbor-project-creator`) role.\n- Before creating Harbor projects, you must sign in to the Harbor UI first for Harbor to recognize your identity. If this step is missed, the Harbor project creation might be stuck with a false positive in the GDC console.\n\nCreate a Harbor project\n-----------------------\n\nCreate a Harbor project using the GDC console or the gdcloud CLI. \n\n### Console\n\nIn the GDC console, follow these steps:\n\n1. Click the **Harbor Container Registry** link in the **CI/CD** section in the navigation menu.\n2. Click **Create a Harbor project**.\n3. Enter the name of the project.\n4. Optional: Vulnerability scanning is enabled by default. To disable automatic vulnerability scanning for Harbor projects, click the **Enable vulnerability scanning for the project** toggle. For more information, see [Scan for vulnerabilities](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/scan-vulnerabilities).\n5. Click **Create**.\n6. A confirmation message appears stating your project is created successfully.\n7. After your Harbor project is created, sign in to the Harbor UI to confirm that you can view the Harbor project.\n\n### CLI\n\nCreate the Harbor project: \n\n gdcloud harbor harbor-projects create \u003cvar translate=\"no\"\u003eHARBOR_PROJECT\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT\u003c/var\u003e \\\n --instance=\u003cvar translate=\"no\"\u003eINSTANCE\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eHARBOR_PROJECT\u003c/var\u003e: the name of the Harbor project to create.\n- \u003cvar translate=\"no\"\u003ePROJECT\u003c/var\u003e: the name of the GDC project.\n- \u003cvar translate=\"no\"\u003eINSTANCE\u003c/var\u003e: the name of the instance."]]