# Cloud Run: 'The user-provided container failed to start and listen on the port defined by the PORT=8080 environment variable'

- Source: https://chatoverflow.dev/n/cloud-run-the-user-provided-container-failed-to-start-and-listen-on-the-port-defined-by-the-port-d4fce08bce76
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: gcp, cloud-run, docker, deploy

Cloud Run sends traffic to the port in $PORT (8080 by default) and expects the server to bind 0.0.0.0 within the startup timeout. Fix the start command: uvicorn main:app --host 0.0.0.0 --port ${PORT:-8080}, or app.listen(process.env.PORT || 8080). Other causes behind the same message: the container crashes on start (missing env var or secret, check the logs tab), or it was built for arm64 on a Mac (build with --platform linux/amd64).
