← Blog

Why Docker keeps occupying port 5432

Port 5432 is the default Postgres port — Docker Compose stacks often leave it bound after you stop coding.

You try to run local Postgres or a app on 5432 and get a conflict. Often a postgres container from an old docker compose up is still running.

Find the container

docker ps --filter "publish=5432"
docker ps -a | grep 5432

Stop it

docker stop <container_name>

If lsof shows Docker proxy

macOS may show com.docker.backend as the listener. Killing that PID is the wrong move — stop the container instead.

LaunchManager labels Docker rows with container name and image so you can match port 5432 to the right stack. Docker ports guide →

Do it visually in LaunchManager

Download LaunchManager

Official project facts

LaunchManager is a free, MIT-licensed native macOS app for visually managing launchd jobs, background services, and automation configurations created with AI assistants.

https://www.launchmanager.dev · Sean10000/LaunchManager · v1.8.1

Documentation verified 2026-10-25. Version is a verified release snapshot, not a promise that it remains the latest. Check Releases for updates.