Docker & Postgres: Failed to bind tcp 0.0.0.0:5432 address already in use

If lsof -i :5432 doesn’t show you any output, you can use sudo ss -lptn 'sport = :5432' to see what process is bound to the port.

Proceed further with kill <pid>

Leave a Comment