Container-Image-Produkte aktualisieren, verwerfen und löschen
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Images in Container Registry aktualisieren
Auf die gleiche Art, wie Sie Ihr ursprüngliches Image in Ihr Staging-Repository für die Container Registry per Push-Funktion übertragen haben, fügen Sie auch neue Images mit dem richtigen Tag der Container Registry hinzu.
Erstellen Sie das Image, das Sie per Push-Funktion in Ihr Staging-Repository für Container Registry übertragen möchten.
Taggen Sie Ihr Image über Docker mit dem Tag der vorhandenen Version, die Sie aktualisieren möchten (oder mit einem neuen Tag, wenn das Image unter einer neuen Versionsbezeichnung übertragen werden soll):
docker tag {image_name} {staging_repo_path}:{tag}
Beispiel: docker tag test-image gcr.io/testpartner/testsolution:latest.
Übertragen Sie das Image per Push mit gcloud:
gcloud docker push {staging_repo_path}:{tag}
Wiederholen Sie diesen Vorgang für alle zusätzlichen Tags, die Sie hinzufügen oder aktualisieren möchten, um sie in das Staging-Repository aufzunehmen. Beachten Sie, dass ein einzelnes Bild mehrere Tags haben kann.
Denken Sie daran, dass ein Image nicht automatisch für Nutzer sichtbar wird, wenn es in Ihr Staging-Repository per Push-Funktion übertragen wird (selbst wenn Sie ein Tag verwenden, das bereits einer Version zugeordnet ist). Dies geschieht erst, wenn Sie die Version im Producer Portal aktualisiert haben und Ihr Produkt veröffentlicht wurde.
Bei Images, die sich bereits in Ihrem Staging-Repository für die Container Registry befinden, können Sie die Tags auch direkt verwalten (hinzufügen, bearbeiten oder löschen). Verwenden Sie dazu die UI der Container Registry.
Produkte im Producer Portal aktualisieren
Öffne das Producer Portal in der Google Cloud Console:
Ersetzen Sie YOUR_PUBLIC_PROJECT_ID durch die ID des öffentlichen Projekts, das Sie für Cloud Marketplace erstellt haben, z. B. my-organization-public.
Klicken Sie in der Produktliste auf die Produkt-ID.
Gehen Sie auf der Seite Übersicht Ihres Produkts zum Abschnitt Container-Images und klicken Sie auf Bearbeiten.
Klicken Sie neben Vorgeschlagene Releases auf Bearbeiten. Es kann einige Sekunden dauern, bis das Repository gelesen und Ihre Tags geladen sind.
Klicken Sie auf den Release, den Sie aktualisieren möchten.
Wählen Sie unter Tag anzeigen die Version aus, die den entsprechenden Digest für das Image verwendet, das Sie in Ihrem Staging-Repository der Container Registry aktualisiert haben.
Klicken Sie auf Fertig, nachdem Sie alle Informationen für den Release aktualisiert haben.
Wenn Sie die unterstützten Releases für Ihr Produkt aktualisiert haben, klicken Sie auf Speichern und validieren.
Klicken Sie auf Senden, um die Container-Images zur Überprüfung einzureichen.
Nachdem alle Überprüfungen genehmigt wurden, können Sie das Produkt veröffentlichen und starten. Öffnen Sie dazu die Seite Übersicht Ihres Produkts und klicken Sie auf Veröffentlichen.
Versionen entfernen
Wenn Sie einen Release aus Ihrem Produkt entfernen, wird er bei der Veröffentlichung des Produkts sofort von der Produktdetailseite entfernt. Durch das Entfernen eines Releases werden jedoch nicht die in der öffentlichen Container Registry veröffentlichten Images entfernt.
Öffne das Producer Portal in der Google Cloud Console:
Ersetzen Sie YOUR_PUBLIC_PROJECT_ID durch die ID des öffentlichen Projekts, das Sie für Cloud Marketplace erstellt haben, z. B. my-organization-public.
Klicken Sie in der Produktliste auf die Produkt-ID.
Gehen Sie auf der Seite Übersicht Ihres Produkts zum Abschnitt Container-Images und klicken Sie auf Bearbeiten.
Klicken Sie neben Vorgeschlagene Releases auf Bearbeiten. Es kann einige Sekunden dauern, bis das Repository gelesen und Ihre Tags geladen sind.
Markieren Sie den Release, den Sie entfernen möchten.
Klicken Sie auf delete, um die Version zu entfernen.
Klicken Sie auf Fertig.
Wenn Sie alle Releases für Ihr Produkt entfernt haben, klicken Sie auf Speichern und validieren.
Klicken Sie auf Senden, um die Container-Images zur Überprüfung einzureichen.
Nachdem alle Überprüfungen genehmigt wurden, können Sie das Produkt veröffentlichen und starten. Öffnen Sie dazu die Seite Übersicht Ihres Produkts und klicken Sie auf Veröffentlichen.
[[["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-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**."]]