The docs for docker-compose down
, docker-compose rm
, and docker rm
all read very similarly. What's the difference? And when would you use one over the others?
Now, the diffrence between "docker-compose rm" and "docker rm", is that when you make changes affecting the container in the docker-compose.yml file, you can't remove the container created by the old docker-compose.yml using "docker-compose rm", so in this case you should use "docker rm" to do that.
If you still don't get it, you can try this example:
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