Container-Images in Cloud Code for IntelliJ speichern
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Wenn Sie eine Anwendung in einem Remote-Kubernetes-Cluster ausführen oder debuggen möchten, müssen Sie das Container-Image-Repository für Ihr Projekt definieren. Sie können einen beliebigen Anbieter für Bild-Repositories verwenden, einschließlich Artifact Registry.
Speicherort der Container-Images angeben
Wenn Sie in Ihrer IDE in Google Cloud angemeldet sind und ein Standardprojekt definiert haben, verwendet Cloud Code automatisch Ihr Standard-Container-Image-Repository gcr.io/PROJECT_ID, wobei PROJECT_ID auf Ihr Standardprojekt verweist.
Wenn Sie das Image-Repository aktualisieren möchten, in das die Projekt-Images per Push übertragen werden, gehen Sie so vor:
Wechseln Sie in der Navigationsleiste zur Auswahl der Ausführungs-/Fehlerbehebungskonfiguration oder im Hauptmenü der obersten Ebene: Ausführen > Konfigurationen bearbeiten > Entwickeln auf Kubernetes > Image-repository.
Füllen Sie das Feld Image-Repository aus.
Im Abschnitt Gängige Image-Repository-Formate finden Sie Beispiele dafür, wie Sie für einige gängige Registrys angeben, wo Container-Images gespeichert werden.
Image-Namen erstellen
Cloud Code verkettet die Image-Registry mit dem Image-Namen, der in den Kubernetes-Manifesten angegeben ist, um den Namen des endgültigen Image-Repositorys zu generieren.
Anschließend erstellt Cloud Code Ihre Container, überträgt sie in die Registry, wendet Kubernetes-Konfigurationen auf den Cluster an und wartet auf den Rollout.
Gängige Image-Repository-Formate
Im Folgenden finden Sie Beispiele, wie Sie für einige gängige Registrys angeben, wo Container-Images gespeichert werden:
So senden Sie Feedback oder melden ein Problem in Ihrer IntelliJ-IDE: Tools > Cloud Code > Hilfe / Info > Feedback geben oder Problem melden, um ein Problem auf GitHub zu melden.
[[["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-05 (UTC)."],[[["\u003cp\u003eYou need to define a container image repository to run or debug an application on a remote Kubernetes cluster, using providers like Artifact Registry.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code automatically uses your default container image repository (gcr.io/PROJECT_ID) if you're logged into Google Cloud in your IDE with a default project, but this step isn't needed if you are running on a local cluster such as minikube or Docker Desktop.\u003c/p\u003e\n"],["\u003cp\u003eTo update the image repository for your project, you can do so via the Run/Debug configuration settings within the IDE by filling in the "Image repository" field.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code combines the image registry with the image name specified in Kubernetes manifests to form the complete image repository name, simplifying image name creation.\u003c/p\u003e\n"],["\u003cp\u003eCommon image repository formats for Docker Hub, Artifact Registry, AWS ECR, and Azure ACR are provided as examples for specifying container image storage locations.\u003c/p\u003e\n"]]],[],null,["# Store your container images in Cloud Code for IntelliJ\n\nTo run or debug an application on a remote Kubernetes cluster, you'll need to\ndefine the container image repository for your project. You can use any image\nrepository provider, including [Artifact Registry](/artifact-registry/docs).\n\nSpecify where container images are stored\n-----------------------------------------\n\nIf you're logged into Google Cloud in your IDE and you have a\ndefault project defined, Cloud Code automatically uses your\ndefault container image repository\n**gcr.io/\u003cvar class=\"readonly\" translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e** , where\n\u003cvar class=\"readonly\" translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e references your default project.\n| **Note:** If you are running on a local cluster like minikube or Docker Desktop, you do not need to specify these configurations.\n\nIf you'd like to update the image repository where the project\nimages are pushed, follow these instructions:\n\n1. Navigate to the Run/Debug configuration selector in the Navigation bar\n or the top-level main menu:\n **Run** \\\u003e **Edit Configurations** \\\u003e **Develop on Kubernetes** \\\u003e **Image repository**.\n\n2. Fill in the **Image repository** field.\n\nSee the [common image repository formats](#image_formats) section for examples\nof how to specify where container images are stored for some common registries.\n\n### Image name creation\n\nCloud Code concatenates the image registry with the image name\nspecified in the Kubernetes manifests to generate the final image repository\nname.\n\nFor more information, see the\n[image registry handling guide](https://skaffold.dev/docs/environment/image-registries).\n\nCloud Code builds your containers, pushes them to the registry,\napplies Kubernetes configurations to the cluster, and waits for the rollout.\n\n### Common image repository formats\n\nHere are examples of how to specify where container images are stored for some\ncommon registries:\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nWhat's next\n-----------\n\n- [Create and configure a GKE cluster](/code/docs/intellij/create-configure-gke-cluster).\n- Learn more about [Artifact Registry](/artifact-registry/docs/overview).\n\nGet support\n-----------\n\nTo submit feedback or report an issue in your IntelliJ IDE, go to **Tools** \\\u003e **Cloud Code** \\\u003e **Help / About** \\\u003e **Submit\nfeedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues)."]]