When I run docker-compose up
in my Docker project it failes with the following message:
Error starting userland proxy: listen tcp 0.0.0.0:3000: bind: address already in use
netstat -pna | grep 3000
shows this:
tcp 0 0 0.0.0.0:3000 0.0.0.0:* LISTEN -
I've already tried docker-compose down
, but it doesn't help.
For Linux/Unix:
Simple search for linux utility using following command
It'll show processing running at this port, then kill that process using PID (look for a PID in row) of that process.
Does the trick.
I resolve the issue by restarting Docker.
I had same problem,
docker-compose down --rmi all
(in the same directory where you run docker-compose up)helps
I ran into the same issue several times. Restarting docker seems to do the trick
I upgraded my docker this afternoon and ran into the same problem. I tried restarting docker but no luck.
Finally, I had to restart my computer and it worked. Definitely a bug.