Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Cette page explique comment gérer les instances de registre Harbor que vous avez créées. Affichez ou supprimez les instances de registre Harbor que vous avez créées à l'aide de la console Google Distributed Cloud (GDC) air-gapped ou de la CLI gdcloud GDC. Supprimez les registres d'instances Harbor inutilisés pour réduire vos coûts de stockage et libérer de l'espace.
Avant de commencer
Pour afficher et supprimer des instances de registre Harbor, vous devez disposer des rôles d'identité et d'accès nécessaires :
Lecteur d'instances Harbor : requis pour afficher les instances Harbor. Demandez à votre administrateur IAM de l'organisation de vous attribuer le rôle Lecteur d'instance Harbor (harbor-instance-viewer).
Administrateur d'instance Harbor : rôle requis pour supprimer des instances Harbor. Demandez à votre administrateur IAM de l'organisation de vous attribuer le rôle Administrateur d'instance Harbor (harbor-instance-admin).
Afficher les instances de registre Harbor
Affichez les instances de registre Harbor que vous avez créées dans la console GDC ou utilisez la CLI gdcloud GDC.
Console
Accédez à la page Harbor Container Registry dans la section CI/CD.
Affichez la liste des instances Harbor créées dans la section Instances.
Pour en savoir plus sur une instance spécifique, cliquez sur le lien externe Accéder à l'instance Harbor.
Supprimez une instance de registre Harbor existante si vous n'en avez plus besoin. Instances de registre Harbor dans la console GDC ou utilisez la CLI gdcloud GDC.
Console
Accédez à la page Harbor Container Registry dans la section CI/CD.
Cliquez sur Supprimer l'instance.
Dans la boîte de dialogue de confirmation :
Cliquez sur Annuler pour arrêter la suppression.
Cliquez sur Supprimer pour confirmer la suppression de l'instance Harbor.
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\u003eThis page provides instructions on how to manage Harbor registry instances within Google Distributed Cloud (GDC) air-gapped environments.\u003c/p\u003e\n"],["\u003cp\u003eYou can view existing Harbor instances via the GDC console or the \u003ccode\u003egdcloud\u003c/code\u003e CLI, with detailed views available through an external link for each instance.\u003c/p\u003e\n"],["\u003cp\u003eDeleting unused Harbor instances can help lower storage costs and free up space, a process achievable through either the GDC console or the \u003ccode\u003egdcloud\u003c/code\u003e CLI.\u003c/p\u003e\n"],["\u003cp\u003eTo view Harbor instances, you need the Harbor Instance Viewer role, while deleting them requires the Harbor Instance Admin role.\u003c/p\u003e\n"]]],[],null,["# Manage Harbor registry instances\n\nThis page details how to manage your created Harbor registry instances. View or\ndelete your created Harbor registry instances using the Google Distributed Cloud (GDC) air-gapped console or the GDC\ngdcloud CLI. Delete unused Harbor instance registries to lower your storage\ncosts and free up space.\n\nBefore you begin\n----------------\n\nTo view and delete Harbor registry instances, you must have the necessary\nidentity and access roles:\n\n- Harbor Instance Viewer: required to view Harbor instances. Ask your Organization IAM Admin to grant you the Harbor Instance Viewer (`harbor-instance-viewer`) role.\n- Harbor Instance Admin: required to delete Harbor instances. Ask your Organization IAM Admin to grant you the Harbor Instance Admin (`harbor-instance-admin`) role.\n\nView Harbor registry instances\n------------------------------\n\nView your created Harbor registry instances in the GDC console or use the GDC\ngdcloud CLI. \n\n### Console\n\n1. Navigate to the **Harbor Container Registry** page in the **CI/CD** section.\n2. View the list of created Harbor instances in the **Instances** section.\n3. For more detail about a specific instance, click the **Go to Harbor\n Instance** external link.\n\n### CLI\n\nView the Harbor registry instance: \n\n gdcloud harbor instances describe \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 project.\n\nDelete Harbor registry instances\n--------------------------------\n\nDelete an existing Harbor registry instance if it is no longer required. Harbor\nregistry instances in the GDC console or use the\nGDC\ngdcloud CLI. \n\n### Console\n\n1. Navigate to the **Harbor Container Registry** page under the **CI/CD** section.\n2. Click **Delete Instance**.\n3. On the confirmation dialog:\n\n 1. Click **Cancel** to stop the delete operation.\n 2. Click **Delete** to confirm the deletion of the Harbor instance.\n\n### CLI\n\nDelete the Harbor registry instance: \n\n gdcloud harbor instances delete \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 project."]]