Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Sie können die folgenden Repository-Einstellungen aktualisieren:
Repository-Beschreibung.
Details zur Upstream-Authentifizierung des Remote-Repositorys.
Unveränderliche Image-Tags für Docker-Repositories. Wenn Sie diese Einstellung aktivieren, verweist ein Image-Tag immer auf denselben Image-Digest, einschließlich des Standard-Tags latest.
Weitere Informationen zu Image-Tags, Image-Digests und unveränderlichen Image-Tags finden Sie unter Container-Image-Versionen.
Bitten Sie Ihren Administrator, Ihnen die IAM-Rolle Artifact Registry Administrator (roles/artifactregistry.admin) für das Google Cloud -Projekt zuzuweisen, um die Berechtigungen zu erhalten, die Sie zum Aktualisieren der Repository-Einstellungen benötigen.
Weitere Informationen zum Zuweisen von Rollen finden Sie unter Zugriff auf Projekte, Ordner und Organisationen verwalten.
Wählen Sie in der Repository-Liste das Repository aus und klicken Sie auf Repository bearbeiten.
Bearbeiten Sie die Einstellungen, die Sie ändern möchten:
Ändern Sie die Repository-Beschreibung.
Aktualisieren Sie die Upstream-Authentifizierungsdetails Ihres Remote-Repositorys.
Aktivieren oder deaktivieren Sie unveränderliche Image-Tags im Bereich Unveränderliche Image-Tags. Wenn Sie diese Einstellung aktivieren, sind die folgenden Aktionen nicht zulässig:
Ein getaggtes Bild löschen
Tag aus einem Bild entfernen
Sie pushen ein Image mit einem Tag, das bereits von einer anderen Version des Images im Repository verwendet wird.
Labels hinzufügen, entfernen oder aktualisieren
Aktivieren oder deaktivieren Sie das Scannen nach Sicherheitslücken.
Klicken Sie auf Speichern.
gcloud
Führen Sie den folgenden Befehl aus, um die Repository-Beschreibung zu bearbeiten:
REPOSITORY ist der Name des Repositorys. Wenn Sie ein Standard-Repository konfiguriert haben, wird bei Weglassen dieses Flags dieses Standard-Repository verwendet.
PROJECT-ID ist die Google Cloud Projekt-ID. Wenn dieses Flag nicht angegeben ist, wird das aktuelle Projekt oder das Standardprojekt verwendet.
LOCATION ist der regionale oder multiregionale Speicherort des Repositorys.
Verwenden Sie dieses Flag, um Repositories an einem bestimmten Speicherort aufzurufen. Wenn Sie einen Standard-Speicherort konfiguriert haben, wird bei Weglassen dieses Flags dieser Standardwert verwendet.
DESCRIPTION ist eine Beschreibung für das Repository.
USERNAME ist der Nutzername Ihres Upstream-Repositorys.
SECRET_ID ist der Name Ihres Secrets.
SECRET_VERSION ist die Secret-Version, die Sie verwenden möchten.
Die beiden Flags für die Tag-Einstellung, --no-immutable-tags oder --immutable-tags, geben an, wie Tags mit Versionen von Bildern verknüpft werden.
--no-immutable-tags: Die Image-Version, auf die das Tag verweist, kann sich ändern. Das Löschen von Bildern, das Entfernen von Tags und das Ändern der Version eines Bildes, auf das ein Tag verweist, sind zulässig.
--immutable-tags: Im Repository verweist ein Tag immer auf dieselbe Version eines Images. Die folgenden Aktionen sind nicht zulässig:
Ein getaggtes Bild löschen
Tag aus einem Bild entfernen
Sie pushen ein Image mit einem Tag, das bereits von einer anderen Version des Images im Repository verwendet wird.
KEY=VALUE... ist eine Liste von durch Kommas getrennten Labels, die als Schlüssel/Wert-Paare angegeben sind. Beispiel: team=team-1,product=example_product,stage=development Weitere Informationen zum Arbeiten mit Labels finden Sie unter Repositories mit Labels versehen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-02 (UTC)."],[[["\u003cp\u003eRepository settings like description, upstream authentication, image tag mutability, labels, and vulnerability scanning can be updated.\u003c/p\u003e\n"],["\u003cp\u003eUpdating repository settings requires the Artifact Registry Administrator role or equivalent permissions through custom or predefined roles.\u003c/p\u003e\n"],["\u003cp\u003eImmutable image tags can be enabled to ensure a tag always points to the same image digest, preventing actions like deleting or retagging images.\u003c/p\u003e\n"],["\u003cp\u003eRepository settings can be updated via the Google Cloud console or the Google Cloud CLI using specific commands.\u003c/p\u003e\n"],["\u003cp\u003eVulnerability scanning can be enabled or disabled for a repository to monitor potential security weaknesses in the stored images.\u003c/p\u003e\n"]]],[],null,["# Update repository settings\n\nYou can update the following repository settings:\n\n- Repository description.\n- Remote repository upstream authentication details.\n- Immutable image tags for Docker repositories. If you enable this setting, an image tag always points to the same image digest, including the default `latest` tag.\n\n To learn more about image tags, image digests, and immutable image tags, see\n [Container image versions](/artifact-registry/docs/docker/names#versions).\n- Repository [labels](/artifact-registry/docs/repositories/label-repos).\n- Vulnerability [scanning settings](/artifact-analysis/docs/enable-automatic-scanning#disable-repo).\n\n### Required roles\n\n\nTo get the permissions that\nyou need to update repository settings,\n\nask your administrator to grant you the\n\n\n[Artifact Registry Administrator](/iam/docs/roles-permissions/artifactregistry#artifactregistry.admin) (`roles/artifactregistry.admin`)\nIAM role on the Google Cloud project.\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nYou might also be able to get\nthe required permissions through [custom\nroles](/iam/docs/creating-custom-roles) or other [predefined\nroles](/iam/docs/roles-overview#predefined).\n\nUpdate settings\n---------------\n\nYou can update settings using Google Cloud console or Google Cloud CLI. \n\n### Console\n\n1. Open the **Repositories** page in the Google Cloud console.\n\n [Open the Repositories page](https://console.cloud.google.com/artifacts)\n2. In the repository list, select the repository and click **Edit Repository**.\n\n3. Edit the settings that you want to change:\n\n - Change the repository description.\n - Update your remote repository upstream authentication details.\n - **Enable** or **disable** immutable image tags in the **Immutable image tags** section. If you enable this setting, the following actions are not permitted:\n - Delete a tagged image.\n - Remove a tag from an image.\n - Push an image with a tag that is already used by another version of the image in the repository.\n - Add, remove, or update labels.\n - **Enable** or **disable** vulnerability scanning.\n4. Click **Save**.\n\n### gcloud\n\nTo edit the repository description, run the following command: \n\n gcloud artifacts repositories update \u003cvar translate=\"no\"\u003eREPOSITORY\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT-ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n --description=\"\u003cvar translate=\"no\"\u003eDESCRIPTION\u003c/var\u003e\"\n\n\nTo update your remote repository upstream authentication details, run the\nfollowing command: \n\n gcloud artifacts repositories update \u003cvar translate=\"no\"\u003eREPOSITORY\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n --remote-username=\u003cvar translate=\"no\"\u003eUSERNAME\u003c/var\u003e \\\n --remote-password-secret-version=projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/secrets/\u003cvar translate=\"no\"\u003eSECRET_ID\u003c/var\u003e/versions/\u003cvar translate=\"no\"\u003eSECRET_VERSION\u003c/var\u003e\n\nTo edit the image tag mutability, run one of the following commands:\n\nTo set image tags to immutable: \n\n gcloud artifacts repositories update \u003cvar translate=\"no\"\u003eREPOSITORY\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT-ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n --immutable-tags\n\nTo set image tags to mutable: \n\n gcloud artifacts repositories update \u003cvar translate=\"no\"\u003eREPOSITORY\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT-ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n --no-immutable-tags\n\nTo update labels, run the following command: \n\n gcloud artifacts repositories update \u003cvar translate=\"no\"\u003eREPOSITORY\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT-ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n --update-labels=\"\u003cvar translate=\"no\"\u003eKEY\u003c/var\u003e=\u003cvar translate=\"no\"\u003eVALUE\u003c/var\u003e,...\"\n\n\nTo edit the vulnerability scanning settings, run one of the following commands:\n\nTo disable scanning on the repository: \n\n gcloud artifacts repositories update \u003cvar translate=\"no\"\u003eREPOSITORY\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT-ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n --disable-vulnerability-scanning\n\nTo allow scanning on the repository: \n\n gcloud artifacts repositories update \u003cvar translate=\"no\"\u003eREPOSITORY\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT-ID\u003c/var\u003e \\\n --location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n --allow-vulnerability-scanning\n\nReplace the following values:\n\n- \u003cvar translate=\"no\"\u003e\u003ccode translate=\"no\" dir=\"ltr\"\u003eREPOSITORY\u003c/code\u003e\u003c/var\u003e is the name of the repository. If you configured a [default](/artifact-registry/docs/gcloud-defaults) repository, you can omit this flag to use the default.\n- \u003cvar translate=\"no\"\u003e\u003ccode translate=\"no\" dir=\"ltr\"\u003ePROJECT-ID\u003c/code\u003e\u003c/var\u003e is the Google Cloud project ID. If this flag is omitted, the current or default project is used.\n- \u003cvar translate=\"no\"\u003e\u003ccode translate=\"no\" dir=\"ltr\"\u003eLOCATION\u003c/code\u003e\u003c/var\u003e is the regional or multi-regional [location](/artifact-registry/docs/repo-locations) of the repository. Use this flag to view repositories in a specific location. If you configured a [default](/artifact-registry/docs/gcloud-defaults) location, you can omit this flag to use the default.\n- \u003cvar translate=\"no\"\u003e\u003ccode translate=\"no\" dir=\"ltr\"\u003eDESCRIPTION\u003c/code\u003e\u003c/var\u003e is a description for the repository.\n- \u003cvar translate=\"no\"\u003e\u003ccode translate=\"no\" dir=\"ltr\"\u003eUSERNAME\u003c/code\u003e\u003c/var\u003e is your upstream repository username.\n- \u003cvar translate=\"no\"\u003e\u003ccode translate=\"no\" dir=\"ltr\"\u003eSECRET_ID\u003c/code\u003e\u003c/var\u003e is the name of your secret.\n- \u003cvar translate=\"no\"\u003e\u003ccode translate=\"no\" dir=\"ltr\"\u003eSECRET_VERSION\u003c/code\u003e\u003c/var\u003e is the secret version you want to use.\n- The two tag setting flags, `--no-immutable-tags` or `--immutable-tags`, indicate how tags are associated with versions of images.\n - `--no-immutable-tags`: the image version that tag points to can change. Deleting images, removing tags, and changing the version of an image that a tag points to are permitted.\n - `--immutable-tags`: in the repository, a tag always points to same version of an image. The following actions are not permitted:\n - Delete a tagged image.\n - Remove a tag from an image.\n - Push an image with a tag that is already used by another version of the image in the repository.\n- \u003cvar translate=\"no\"\u003eKEY\u003c/var\u003e`=`\u003cvar translate=\"no\"\u003eVALUE\u003c/var\u003e`...` is a list of comma-separated labels specified as key-value pairs. For example: `team=team-1,product=example_product,stage=development`. For more information about working with labels, see [Label repositories](/artifact-registry/docs/repositories/label-repos).\n\n\u003cbr /\u003e\n\nWhat's next\n-----------\n\n- Learn to [restrict artifact downloads with download rules](/artifact-registry/docs/restrict-artifact-downloads)."]]