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

Error from .NET 6 container on Cloud Run

Hi, 
I encountered this error ...
Invalid ENTRYPOINT.  error: "USER \"ContainerUser\": /etc/passwd: file not found" ].

What should I do now ? 
Thanks in advacnce !!

0 3 271
3 REPLIES 3

Here's an example Dockerfile for .NET 6.0 that works for Cloud Run: https://github.com/meteatamel/cloudrun-tutorial/tree/master/helloworld/csharp/6.0

Thanks for your kind reply. I realized that it is limited with Linux container.
BTW, I followed this example and only port 80 works in Cloud Run ? (even though i set container port as same as port in Dockerfile)

Cloud Run listens for port 8080 by default but you can configure it to listen another port: https://cloud.google.com/run/docs/container-contract#port

Top Solution Authors