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

cloudrun an error while deploying from Artifact Registry

Hi, if you konw, please let me know


I’ve building a container, then i pushed the container to gcp artifact registry
however, deploying to croud run that not working


Acutual outcome:
Getting this error:
Cloud Run error: The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable.

Solved Solved
0 1 26.3K
1 ACCEPTED SOLUTION

Hello. The most common cause of this error is the container not listening for incoming HTTP requests on the port that is defined by Cloud Run and provided in the $PORT environment variable. This is a requirement for Cloud Run. Please review this document which lists a series of steps to follow when encountering this error in order to fix the issue. 

View solution in original post

1 REPLY 1

Hello. The most common cause of this error is the container not listening for incoming HTTP requests on the port that is defined by Cloud Run and provided in the $PORT environment variable. This is a requirement for Cloud Run. Please review this document which lists a series of steps to follow when encountering this error in order to fix the issue. 

Top Solution Authors