Migration zum Annotieren von Container-Images mit dem Dienstnamen
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Ab dem 20. Januar 2025 müssen alle neuen oder aktualisierten Bereitstellungen von Google Kubernetes Engine-App-Produktlisten oder Container-Image-Produkten im Image-Manifest eine Anmerkung enthalten, die den Dienstnamen des Produkts identifiziert. Diese Anmerkung hat folgendes Format:
Ersetzen Sie SERVICE_NAME durch den Namen Ihres Dienstes.
Eine Anmerkung ist ein Schlüssel/Wert-Paar, das dem Bildmanifest hinzugefügt wird. Weitere Informationen zu Anmerkungen finden Sie in der Dokumentation zu Anmerkungen der Open Container Initiative auf GitHub.
Fügen Sie die Anmerkung dem Manifest Ihres Container-Images hinzu.
Verwenden Sie ein Tool wie Docker oder Crane, um die Anmerkung in das Manifest Ihres Container-Images einzufügen.
Eine Anleitung zum Hinzufügen einer Anmerkung mit Docker finden Sie in der Docker-Dokumentation unter Anmerkungen hinzufügen.
Eine Anleitung zum Hinzufügen einer Anmerkung mit Crane findest du in der Crane-Dokumentation unter crane mutate.
Den Namen deines Dienstes findest du in der Produkttabelle auf der Seite Übersicht im Producer Portal.
[[["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,["# Migrate to annotating container images with their service name\n\nStarting January 20, 2025, Google Cloud Marketplace is requiring that all new or updated\ndeployments of Google Kubernetes Engine app product listings or container image products\ncontain an annotation in their image manifest that identifies the service name\nof the product. This annotation has the following format: \n\n com.googleapis.cloudmarketplace.product.service.name=services/\u003cvar translate=\"no\"\u003eSERVICE_NAME\u003c/var\u003e\n\nReplace \u003cvar translate=\"no\"\u003eSERVICE_NAME\u003c/var\u003e with the name of your service.\n\nAn annotation is a key-value pair that's added to the image manifest. For more\ninformation about annotations, see the Open Container Initiative's documentation\nof\n[annotations](https://github.com/opencontainers/image-spec/blob/main/annotations.md)\non GitHub.\n\nAdd the annotation to your container image manifest\n---------------------------------------------------\n\nTo add the annotation to your container image manifest, use a tool like\n[Docker](https://docs.docker.com/engine/reference/builder/) or\n[Crane](https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane.md).\n\n- For steps to add an annotation with Docker, see [Add annotations](https://docs.docker.com/build/metadata/annotations/#add-annotations) in the Docker documentation.\n- For steps to add an annotation with Crane, see [crane mutate](https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_mutate.md) in the Crane documentation.\n\nTo find your service name, refer to the table of products on the **Overview** page\nin Producer Portal."]]