Docker-compose down-network is external, skipping

I am trying to bring down all services for an external network defined in the docker-compose file (using version 2).

When I try to do docker-compose down , I get a message with a message,

The network 'your_network' is external, skipping

Is there a way, using docker-compose, to stop and delete all containers for a user or external network?

+5
source share
1 answer

I came across the same error. docker-compose can only stop containers launched by the docker-compose command. In my case: the containers I wanted to stop were started by the docker application. So I stopped the containers one by one. then launched them using docker-compose.yml

Not sure if this is the same case.

0
source

Source: https://habr.com/ru/post/1246101/


All Articles