Zum Inhalt springen

Organizing artifacts with labels

Zuletzt aktualisiert am

Labels are a powerful metadata feature that helps you organize, filter, and manage the container images and other artifacts within your project. They are colored tags visible in the UI that can be used to categorize resources in a flexible way.

As a Project Admin, you can manage your project-specific labels from the Labels tab within your project’s detail page. Here, you can create new labels, assign them a color, and provide a description.

Screenshot of the label creation interface in the STACKIT Container Registry. The form is active, showing input fields for a Label Name set to "Development", a selected color hex code, and an empty Description box, alongside yellow "CANCEL" and "OK" buttons. Below the form, an existing pink label named "Production" is displayed in the list.

Users with project Admin or developer roles can apply labels to images.

  1. Navigate to the Repositories tab in your project.
  2. Select a repository and find the specific artifact (image) you want to label.
  3. Click the Add Labels button. A dialog will appear showing all available global and project-level labels.
  4. Select the labels you wish to apply to the artifact.

The primary power of labels comes from their use in filtering and automation:

  • Filtering: In the repository view, you can filter the displayed artifacts by one or more labels, making it easy to find all images related to a specific environment (e.g., production), team, or status.

Close-up screenshot of the artifact filtering options in STACKIT Container Registry. A dropdown menu titled "Filter artifact by label" is open over the table columns, displaying a search box containing the placeholder text "Filter Labels" and showing a selectable pink label option named "Production" below it.

  • Automation: Labels are a key component for automating other registry features. For example, you can use labels as a filter when creating replication rules or tag retention policies, allowing for highly specific and automated management of your artifacts