atreeon
atreeon

Reputation: 24097

How to see the files running on my Google Cloud Platform Cloud Run service when using Artifact Repository?

This question How to see the files running on my Google Cloud Platform Cloud Run service? seems to use Container Registry (gcr.io files)

How do I view the files in my image when using Artifact Registry as opposed to Container Registry?

I have run

docker run -it --entrypoint sh europe-west1-docker.pkg.dev/bb-xyz/cloud-run-source-deploy/myservice:latest

but I get the message

Unable to find image

Upvotes: 0

Views: 497

Answers (1)

Svaeng
Svaeng

Reputation: 66

You must authenticate your registry first.

As it says:

Use these commands with the Docker client to pull the image. To use these commands, your Docker client must be configured to authenticate with $REGION-docker.pkg.dev. If this is the first time that you are pulling an image from $REGION-docker.pkg.dev with your Docker client, run the following command on the machine where Docker is installed.

gcloud auth configure-docker $REGION-docker.pkg.dev

After this, you can access it like in this answer.

Upvotes: 1

Related Questions