Manage Harbor registry instances

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

  1. Navigate to the Harbor Container Registry page in the CI/CD section.
  2. View the list of created Harbor instances in the Instances section.
  3. 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

  1. Navigate to the Harbor Container Registry page under the CI/CD section.
  2. Click Delete Instance.
  3. On the confirmation dialog:

    1. Click Cancel to stop the delete operation.
    2. 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.