Docker and CI/CD · Junior · Question 26 of 75
What does docker compose down -v do in addition to down?
- 1It also prints verbose logs from every stopped container
- ✓Correct answer: It also removes the named volumes, deleting their data
- 3It also removes the images that the services were built from
Explanation
down stops and removes containers and networks but keeps volumes. -v wipes them too, which is great for a fresh local database and a disaster if run by mistake.