advancedTop 100 Interview Questions

What's the difference between `docker compose down` and `docker compose down -v`?

Plain `down` stops and removes containers and the project's network but leaves named volumes intact by default, preserving data. Adding `-v` additionally removes named volumes, permanently deleting any data stored in them.

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.

What's the difference between `docker compose down` and `docker compose down -v`?

Next Step

Continue to How does Compose decide which network to put services on by default?← Back to all Docker questions