This page details how to manage your created Harbor registry instances. View or delete your created Harbor registry instances using the Google Distributed Cloud (GDC) air-gapped console or the GDC gdcloud CLI. Delete unused Harbor instance registries to lower your storage costs and free up space.
Before you begin
To view and delete Harbor registry instances, you must have the necessary identity and access roles:
- Harbor Instance Viewer: required to view Harbor instances. Ask your
Organization IAM Admin to grant you the Harbor Instance Viewer
(
harbor-instance-viewer
) role. - Harbor Instance Admin: required to delete Harbor instances. Ask your
Organization IAM Admin to grant you the Harbor Instance Admin
(
harbor-instance-admin
) role.
View Harbor registry instances
View your created Harbor registry instances in the GDC console or use the GDC gdcloud CLI.
Console
- Navigate to the Harbor Container Registry page in the CI/CD section.
- View the list of created Harbor instances in the Instances section.
- For more detail about a specific instance, click the Go to Harbor Instance external link.
CLI
View the Harbor registry instance:
gdcloud harbor instances describe INSTANCE \
--project=PROJECT
Replace the following:
INSTANCE
: the name of the instance.PROJECT
: the name of the project.
Delete Harbor registry instances
Delete an existing Harbor registry instance if it is no longer required. Harbor registry instances in the GDC console or use the GDC gdcloud CLI.
Console
- Navigate to the Harbor Container Registry page under the CI/CD section.
- Click Delete Instance.
On the confirmation dialog:
- Click Cancel to stop the delete operation.
- Click Delete to confirm the deletion of the Harbor instance.
CLI
Delete the Harbor registry instance:
gdcloud harbor instances delete INSTANCE \
--project=PROJECT
Replace the following:
INSTANCE
: the name of the instance.PROJECT
: the name of the project.