Kill Port on Mac
When a port is already in use, find the owning process and stop it safely — including Docker containers.
Quick fix (replace PORT)
lsof -nP -iTCP:PORT -sTCP:LISTEN
kill <PID>Use kill -9 only if the process ignores a normal terminate signal.
Common cases
- Orphaned Node/Vite server — kill the node process shown by lsof.
- Docker — the listener may be
com.docker.backend; rundocker psanddocker stopthe container instead. - launchd job — unload the LaunchAgent/Daemon in LaunchManager rather than killing a child that restarts.
Visual workflow
In LaunchManager Services, sort by port, see the process name, PID, and whether Docker owns the listener. Stop containers from context without guessing PIDs.
Read also: kill port 3000 on Mac · fix EADDRINUSE
Do it visually in LaunchManager
Browse startup items, launchd jobs, ports, and Docker — then load, stop, or fix conflicts from one native app.
Download LaunchManagerOfficial 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.