Memperbarui, menghentikan penggunaan, dan menghapus produk image container
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Mengupdate image di Container Registry
Dengan mengikuti proses yang sama seperti yang Anda lakukan saat mengirim image ke repositori staging Container Registry, tambahkan image baru ke Container Registry dengan tag yang sesuai.
Build image yang ingin Anda kirim ke repositori staging
Container Registry.
Beri tag pada image Anda menggunakan Docker dengan tag versi yang ada yang ingin
diupdate (atau dengan tag baru jika Anda menginginkan image dalam versi baru):
docker tag {image_name} {staging_repo_path}:{tag}
Misalnya,
docker tag test-image gcr.io/testpartner/testsolution:latest
Kirim gambar menggunakan gcloud:
gcloud docker push {staging_repo_path}:{tag}
Ulangi untuk tag tambahan yang ingin ditambahkan atau diperbarui ke repositori staging Anda. Perhatikan bahwa satu gambar dapat memiliki beberapa tag.
Perlu diingat bahwa mendorong image ke repositori staging tidak akan
otomatis membuatnya terlihat oleh pengguna (meskipun Anda menggunakan tag yang
sudah dikaitkan dengan versi); hal ini hanya terjadi setelah Anda mengupdate
versi di Producer Portal dan produk Anda dipublikasikan.
Anda dapat mengelola tag secara langsung (menambahkan, mengedit, atau menghapus) pada image yang sudah ada di repositori staging Container Registry menggunakan UI Container Registry.
Ganti YOUR_PUBLIC_PROJECT_ID dengan ID untuk project publik yang Anda buat untuk Cloud Marketplace—misalnya, my-organization-public.
Di daftar produk, klik ID produk.
Di halaman Ringkasan produk Anda, buka bagian Image penampung, lalu klik Edit.
Di bagian Rilis yang Diusulkan, klik Edit. Mungkin perlu waktu beberapa detik untuk membaca repositori dan memuat tag Anda.
Klik rilis yang ingin diperbarui.
Di Display tag, pilih versi yang menggunakan ringkasan
yang sesuai dengan image yang Anda perbarui di repositori Container Registry staging.
Setelah memperbarui semua informasi untuk rilis, klik Selesai.
Setelah selesai memperbarui rilis yang didukung ke produk Anda, klik Simpan dan Validasi.
Klik Kirim untuk mengirimkan image container untuk ditinjau.
Setelah semua ulasan disetujui, Anda dapat memublikasikan dan meluncurkan produk dengan membuka halaman Ringkasan produk dan mengklik Publikasikan.
Menghapus versi
Saat Anda menghapus rilis dari produk, rilis tersebut akan segera dihapus dari
halaman detail produk saat produk dipublikasikan. Namun, menghapus
rilis tidak akan menghapus gambar yang dipublikasikan ke Container Registry publik.
[[["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-09-04 UTC."],[],[],null,["# Updating, deprecating, and deleting container image products\n\nUpdating images in Container Registry\n-------------------------------------\n\nFollowing the same process that you performed when you pushed your image to your\nContainer Registry staging repository, add your new image to\nContainer Registry with the proper tag.\n\n1. Build the image that you want to push to your Container Registry staging repository.\n2. Tag your image using Docker with the tag of the existing version you'd like\n to update (or with a new tag if you want the image under a new version):\n\n `docker tag {image_name} {staging_repo_path}:{tag}`\n\n For example,\n `docker tag test-image gcr.io/testpartner/testsolution:latest`\n3. Push your image using `gcloud`:\n\n `gcloud docker push {staging_repo_path}:{tag}`\n4. Repeat for any additional tags you'd like to add or update to your\n staging repository. Note that a single image can have multiple tags.\n\n Remember that pushing an image to your staging repository doesn't\n automatically make it visible to users (even if you use a tag that is\n already associated with a version); this only happens after you update the\n version in Producer Portal and your product is published.\n\nYou can manage tags directly (add, edit, or delete) on images already in\nyour Container Registry staging repository using the\n[Container Registry UI](https://cloud.google.com/container-registry/).\n\n### Updating your products in Producer Portal\n\n1. Open Producer Portal in the Google Cloud console:\n\n ```\n https://console.cloud.google.com/producer-portal?project=YOUR_PUBLIC_PROJECT_ID\n ```\n\n Replace \u003cvar translate=\"no\"\u003eYOUR_PUBLIC_PROJECT_ID\u003c/var\u003e with the ID for the public\n project that you created for Cloud Marketplace---for example,\n `my-organization-public`.\n | **Note:** If you don't see the link, or can't access the URL, verify that you've selected the correct project and have the Editor (`roles/editor`) role for the project. If you still can't access the URL, use the [Partner Support Desk](https://g.co/cloud/psd-partner) to request assistance, and include the word \"Marketplace\" in your description. For more information about Partner Support Desk, visit [Request assistance with Cloud Marketplace](/marketplace/docs/partners/get-support).\n2. In the list of products, click the product ID.\n\n3. On the **Overview** page of your product, go to the **Container images**\n section, and click **Edit**.\n\n4. By **Proposed Releases** , click **Edit**. It might take a few seconds to read the\n repository and load your tags.\n\n5. Click the release that you want to update.\n\n6. In **Display tag**, select the version that uses the corresponding\n digest to the image you updated in your staging Container Registry repository.\n\n7. After you've updated all the information for the release, click **Done**.\n\n8. When you're done updating supported releases to your product, click **Save and Validate**.\n\n9. Click **Submit** to submit the container images for review.\n\n10. After all reviews have been approved, you can publish and launch the\n product by opening the **Overview** page of your product and clicking **Publish**.\n\nRemoving versions\n-----------------\n\nWhen you remove a release from your product, it is immediately removed from\nthe product details page when the product is published. However, removing\na release does not remove the images published to the public\nContainer Registry.\n\n1. Open Producer Portal in the Google Cloud console:\n\n ```\n https://console.cloud.google.com/producer-portal?project=YOUR_PUBLIC_PROJECT_ID\n ```\n\n Replace \u003cvar translate=\"no\"\u003eYOUR_PUBLIC_PROJECT_ID\u003c/var\u003e with the ID for the public\n project that you created for Cloud Marketplace---for example,\n `my-organization-public`.\n | **Note:** If you don't see the link, or can't access the URL, verify that you've selected the correct project and have the Editor (`roles/editor`) role for the project. If you still can't access the URL, use the [Partner Support Desk](https://g.co/cloud/psd-partner) to request assistance, and include the word \"Marketplace\" in your description. For more information about Partner Support Desk, visit [Request assistance with Cloud Marketplace](/marketplace/docs/partners/get-support).\n2. In the list of products, click the product ID.\n\n3. On the **Overview** page of your product, go to the **Container images**\n section, and click **Edit**.\n\n4. By **Proposed Releases** , click **Edit**. It might take a few seconds to read the\n repository and load your tags.\n\n5. Highlight the release that you want to remove.\n\n6. Click delete to remove the version.\n\n7. Click **Done**.\n\n8. When you're done removing releases to your product, click **Save and Validate**.\n\n9. Click **Submit** to submit the container images for review.\n\n10. After all reviews have been approved, you can publish and launch the\n product by opening the **Overview** page of your product, and clicking **Publish**."]]