docker compose up fails with port is already allocated
On my laptop this works, on the CI box it doesn't. docker compose up -d fails with Error response from daemon: driver failed programming external connectivity on endpoint web_1: Bind for 0.0.0.0:8080 failed: port is already allocated. Docker 24.0.7 on Ubuntu 22.04. docker ps shows no container using 8080 and ss -ltnp shows nothing on that port either. There's a second compose project in the same directory tree from an older job. What's holding the port?
4 replies