Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to access Cloud Run container?

Is there any way to log in to a Cloud Run container? One of the advantages a VM provides is you are able to log in the containers and debug. How can we do that with Cloud Run? E.g., common issues where we need to log in to a container are a new app unable to connect to database (example). 

0 2 2,516
2 REPLIES 2

If a problem occurs in cloud run, you can check it through "Cloud Logging" (https://cloud.google.com/run/docs/logging).

It is not a good practice to access the container and check the logs when using the cloud. And if that's a serverless product, that's impossible.

I guess that's a disadvantage of going serverless. We can check logs but it takes 10x more time to debug and troubleshoot using that approach. we have to keep redeploying, pushing new images etc.

Top Solution Authors