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 !!

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

2 Likes

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

1 Like