# Store your container images in Cloud Code for IntelliJ

To run or debug an application on a remote Kubernetes cluster, you'll need to
define the container image repository for your project. You can use any image
repository provider, including [Artifact Registry](https://docs.cloud.google.com/artifact-registry/docs).

## Specify where container images are stored

If you're logged into Google Cloud in your IDE and you have a
default project defined, Cloud Code automatically uses your
default container image repository
**gcr.io/<var class="readonly" translate="no">PROJECT_ID</var>** , where
<var class="readonly" translate="no">PROJECT_ID</var> references your default project.

> [!NOTE]
> **Note:** If you are running on a local cluster like minikube or Docker Desktop, you do not need to specify these configurations.

If you'd like to update the image repository where the project
images are pushed, follow these instructions:

1. Navigate to the Run/Debug configuration selector in the Navigation bar
   or the top-level main menu:
   **Run** \> **Edit Configurations** \> **Develop on Kubernetes** \> **Image repository**.

2. Fill in the **Image repository** field.

See the [common image repository formats](https://docs.cloud.google.com/code/docs/intellij/store-container-images#image_formats) section for examples
of how to specify where container images are stored for some common registries.

### Image name creation

Cloud Code concatenates the image registry with the image name
specified in the Kubernetes manifests to generate the final image repository
name.

For more information, see the
[image registry handling guide](https://skaffold.dev/docs/environment/image-registries).

Cloud Code builds your containers, pushes them to the registry,
applies Kubernetes configurations to the cluster, and waits for the rollout.

### Common image repository formats

Here are examples of how to specify where container images are stored for some
common registries:

<br />

|---|---|
| Docker Hub | **docker.io/<var class="readonly" translate="no">ACCOUNT</var>** |
| Artifact Registry | **<var class="readonly" translate="no">REGION</var>-docker.pkg.dev/<var class="readonly" translate="no">PROJECT_ID</var>/<var class="readonly" translate="no">REPO_PATH</var>** |
| AWS Elastic Container Registry (ECR) | **<var class="readonly" translate="no">AWS_ACCOUNT_ID</var>.dkr.ecr.<var class="readonly" translate="no">REGION</var>.amazonaws.com/<var class="readonly" translate="no">MY_APP</var>** |
| Azure Container Registry (ACR) | **<var class="readonly" translate="no">MY_ACR_NAME</var>.azurecr.io/<var class="readonly" translate="no">MY_APP</var>** |

<br />

## What's next

- [Create and configure a GKE cluster](https://docs.cloud.google.com/code/docs/intellij/create-configure-gke-cluster).
- Learn more about [Artifact Registry](https://docs.cloud.google.com/artifact-registry/docs/overview).

## Get support

To submit feedback or report an issue in your IntelliJ IDE, go to **Tools** \> **Cloud Code** \> **Help / About** \> **Submit
feedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues).