intermediateDocker Compose: Services, Networks, Volumes, Scaling & Health Checks
What is the difference between docker compose down and docker compose down -v?
docker compose down stops and removes the containers and the project's network, but leaves named volumes (and their data) intact. Adding -v additionally removes the named volumes, which is destructive for any stateful service — useful for a genuinely clean slate, but it will permanently delete database data if used carelessly.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.
What is the difference between docker compose down and docker compose down -v?