Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Anda dapat memperbarui setelan repositori berikut:
Deskripsi repositori.
Detail autentikasi upstream repositori jarak jauh.
Tag image yang tidak dapat diubah untuk repositori Docker. Jika Anda mengaktifkan setelan ini,
tag image akan selalu mengarah ke ringkasan image yang sama, termasuk tag latest default.
Untuk mempelajari lebih lanjut tag image, ringkasan image, dan tag image yang tidak dapat diubah, lihat
Versi image container.
Untuk mendapatkan izin yang diperlukan guna memperbarui setelan repositori, minta administrator Anda untuk memberi Anda peran IAM Administrator Artifact Registry (roles/artifactregistry.admin) di project Google Cloud .
Untuk mengetahui informasi selengkapnya tentang cara memberikan peran, lihat Mengelola akses ke project, folder, dan organisasi.
Anda mungkin juga bisa mendapatkan
izin yang diperlukan melalui peran
khusus atau peran
bawaan lainnya.
Setelan pembaruan
Anda dapat memperbarui setelan menggunakan konsol Google Cloud atau Google Cloud CLI.
Konsol
Buka halaman Repositories di konsol Google Cloud .
Di daftar repositori, pilih repositori, lalu klik Edit Repositori.
Edit setelan yang ingin Anda ubah:
Ubah deskripsi repositori.
Perbarui detail autentikasi upstream repositori jarak jauh Anda.
Aktifkan atau nonaktifkan tag gambar yang tidak dapat diubah di bagian Tag gambar yang tidak dapat diubah. Jika Anda mengaktifkan setelan ini, tindakan berikut tidak diizinkan:
Menghapus gambar yang diberi tag.
Menghapus tag dari gambar.
Kirim image dengan tag yang sudah digunakan oleh versi image lain di repositori.
Menambahkan, menghapus, atau memperbarui label.
Aktifkan atau nonaktifkan pemindaian kerentanan.
Klik Simpan.
gcloud
Untuk mengedit deskripsi repositori, jalankan perintah berikut:
REPOSITORY adalah nama repositori. Jika Anda mengonfigurasi repositori default, Anda dapat menghapus tanda ini untuk menggunakan default.
PROJECT-ID adalah Google Cloud project ID. Jika flag ini tidak ada, project saat ini atau default akan digunakan.
LOCATION adalah lokasi repositori regional atau multi-regional.
Gunakan tanda ini untuk melihat repositori di lokasi tertentu. Jika mengonfigurasi lokasi default, Anda dapat menghilangkan tanda ini untuk menggunakan default.
DESCRIPTION adalah deskripsi untuk repositori.
USERNAME adalah nama pengguna repositori upstream Anda.
SECRET_ID adalah nama secret Anda.
SECRET_VERSION adalah versi rahasia yang ingin Anda gunakan.
Dua tanda setelan tag, --no-immutable-tags atau
--immutable-tags, menunjukkan cara tag dikaitkan dengan versi gambar.
--no-immutable-tags: versi image yang ditunjuk oleh tag dapat berubah. Menghapus gambar, menghapus tag, dan mengubah versi gambar yang dituju oleh tag diizinkan.
--immutable-tags: di repositori, tag selalu mengarah ke versi image yang sama. Tindakan berikut tidak diizinkan:
Menghapus gambar yang diberi tag.
Menghapus tag dari gambar.
Kirim image dengan tag yang sudah digunakan oleh versi image lain di repositori.
KEY=VALUE... adalah daftar label yang dipisahkan koma dan ditentukan sebagai pasangan nilai kunci. Contoh: team=team-1,product=example_product,stage=development. Untuk mengetahui informasi selengkapnya tentang cara menggunakan label, lihat Memberi label pada repositori.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 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)."]]