Search code examples
google-cloud-platformgoogle-container-registrygoogle-cloud-run

Can I use cloud run with self-hosted/private docker image registry?


When I deployed with my self-hosted(private) Docker image registry, got this error:

This service will require authentication to be invoked.
Deploying container to Cloud Run service [serverless-functions-go] in project [PROJECT_ID] region [us-central1]
X Deploying new service...
  . Creating Revision...
  . Routing traffic...
Deployment failed
ERROR: (gcloud.beta.run.deploy) Invalid image provided in the revision template. Expected [region.]gcr.io/repo-path[:tag or @digest], obtained dtr.artifacts.xxx.com/xxxxx/xxxx/serverless-functions-go:latest

Before pulling the image from my private docker image registry, I need to use the command like:

docker login [options]

How can I solve this issue?


Solution

  • Can I use cloud run with private docker container registry?

    No, not at this time. See "Images you can deploy" in the Cloud Run documentation.