docker bind address already in use

Perhaps you’ve been playing with docker-compose, and you run into this error

docker bind address already in use

In my case I was editing my docker compose file, and removed a service before I ran docker-compose down. This meant the service was still running as docker-compose down did not bring down that specific service. In turn the port remained in use.

Solution

docker-compose down --remove-orphans

ZOMG, suddenly I remembered I indeed started those services, I iz dumbass.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.