When I run docker-compose up in my Docker project it failes with the following message:
docker-compose up
Error starting userland proxy: listen tcp 0.0.0.0:3000:
This helped me:
docker-compose down # Stop container on current dir if there is a docker-compose.yml docker rm -fv $(docker ps -aq) # Remove all containers sudo lsof -i -P -n | grep # List who's using the port
and then: kill -9 (macOS) or sudo kill (Linux).
kill -9
sudo kill
Source: comment by user Rub21.