docker-compose down default_network error

I'm guessing you edited the docker-compose file while you were currently running...?

Sometimes if you edit the docker-compose file before doing a docker-compose down it will then have a mismatch in what docker-compose will attempt to stop. First run docker rm 8598560 to stop the currently running container. From there, make sure you do a docker-compose down before editing the file. Once you stop the container, docker-compose up should work.


I resolved a similar problem when I added this after rename services in by docker-compose.yml file before stop container

docker-compose down --remove-orphans

You need to disconnect stale endpoint(s) from the network. First, get the endpoint names with

docker network inspect <network>

You can find your endpoints in the output JSON: Containers -> Name. Now, simply force disconnect them with:

docker network disconnect -f <network> <endpoint>