Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cloud Architect

I am trying to deploy a SQL docker image in cloud run
But I get the following error:
ERROR: (gcloud.run.deploy) Revision 'new-sql-server-00004-cqh' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=1433

I can't fix the error even though I change PORT

What do you have to tell me about deploying SQL in cloud run?

0 1 83
1 REPLY 1

HI @sara24,

Welcome to Google Cloud Community

  • Running a full SQL server in Cloud Run isn't ideal due to port mismatch and Cloud Run being designed for stateless applications.
  • Use Cloud SQL, a managed database service, instead. It integrates well with Cloud Run and handles database management.
  • Explore alternative databases like Cloud Spanner or managed PostgreSQL if a full SQL Server isn't necessary.
  • Check your Dockerfile's port configuration and consider frameworks for easier Cloud SQL connection.
Top Solution Authors