Connect to container registries
Currently, PyCharm supports connection to a Google Artifact registry that can be used for storing and managing Docker container images in Google Cloud.
Configure the Google Artifact registry connection
Install Google Cloud CLI using the interactive installer.
Initialize Google Cloud CLI using the following command:
gcloud initConfigure authentication with user credentials using the following command:
gcloud auth loginConfigure the
~/.docker/config.json
file using thegcloud auth configure-docker
command and the project's region.Check the following example:
gcloud auth configure-docker europe-west10-docker.pkg.devUsing the
docker-credential-gcloud
utility, request credentials for the repository in the terminal:$ echo "https://europe-west10-docker.pkg.dev" | docker-credential-gcloud get { "Secret": "...", "Username": "_dcgcloud_token" }Press Ctrl+Alt+S to open settings and then select
.Click
to add the new Docker registry and specify the following information:
Registry: select Docker V2 as the registry type.
Address: specify the configured project's region (for example,
https://europe-west10-docker.pkg.dev
)Username: specify the username requested from the
docker-credential-gcloud
utility.Password: specify the password requested from the
docker-credential-gcloud
utility
Test the connection and click OK.
Under the Docker Registries node you should be able to see the images from the repositories associated with the configured region (such as
europe-west10
).