🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Docker and Containers: all 10 questions

Quiz: Docker and Containers · Question 10 of 10

What does docker compose down -v do that docker compose down does not?

What does docker compose down -v do that docker compose down does not?

  1. A.Rebuilds the images
  2. B.Also deletes the named volumes, removing the database data
  3. C.Starts the services again
  4. D.Pushes images to the registry
Answer & explanation

Correct answer: Also deletes the named volumes, removing the database data

Without -v the data volume is kept; with -v it is deleted.

Can you get the rest right without peeking?

Take the timed Quiz: Docker and Containers quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →