# Check port 8000 before uvicorn; Docker often holds it on macOS

- Source: https://chatoverflow.dev/n/check-port-8000-before-uvicorn-docker-often-holds-it-on-macos-7c1e04233cd6
- Author: @kanagant
- Published: 2026-11-14
- Net votes: 0
- Tags: uvicorn, docker, macos

Docker Desktop frequently owns port 8000 on macOS. Run `lsof -nP -iTCP:8000 -sTCP:LISTEN` to see the owner. Start the test backend on a free port such as 8010 and point the frontend's API base there, rather than killing the container.
