Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Utilisez le service Managed Harbor Service (MHS) Google Distributed Cloud (GDC) air-gapped pour créer une instance de registre Harbor dans chaque projet. Une instance de registre Harbor sert de dépôt central pour stocker et gérer les images de conteneurs dans un environnement cloud natif. Il étend les capacités de la distribution Docker Open Source.
Les restrictions suivantes s'appliquent :
Vous ne pouvez créer qu'une seule instance dans chaque projet.
Les instances sont isolées et ne partagent aucune donnée ni ressource de calcul.
Avant de commencer
Pour créer des instances de registre Harbor, vous devez disposer des rôles d'identité et d'accès nécessaires :
Administrateur d'instance Harbor : accorde un accès en lecture et en écriture à toutes les ressources Harbor.
Demandez à votre administrateur IAM de l'organisation de vous attribuer le rôle Administrateur d'instance Harbor (harbor-instance-admin).
Créer une instance de registre Harbor
Suivez ces étapes pour créer une instance de registre Harbor dans votre projet.
Console
Dans la console GDC, procédez comme suit :
Cliquez sur le lien Harbor Container Registry dans la section CI/CD du menu de navigation.
Cliquez sur Créer une instance.
Saisissez le nom de l'instance dans Nom de l'instance.
Facultatif : Dans Projets, activez l'option Créer un projet par défaut lors de la création de cette instance pour créer un projet par défaut pour cette instance Harbor.
Saisissez un nom de projet dans Nom du projet.
Lisez les Conditions d'utilisation de Harbor Managed et cochez la case si vous les acceptez.
L'état doit indiquer En cours et le nom doit afficher un lien externe contenant le nom de l'instance Harbor que vous venez de créer.
Une fois l'instance créée et que l'état indique Prêt, cliquez sur le lien externe de la page pour accéder à l'interface utilisateur Web de l'instance Harbor.
PROJECT : nom du projet GDC dans lequel créer l'instance.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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."]]