I am trying to launch a network of containers using docker-compose, when I want to stop this network I executed
docker-compose down
some containers didn't stop, I tried
docker rm $(docker ps -a -q)
but it didn't execute, I receive no response after running this command! I have tried this command also :
docker rm id_container
Does anyone have an idea on how to force this container to stop?
Sometimes docker hangs and compose services become ghost services with status pending removal or something like that. Try to restart your host and see if that helps solving the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With