DevOps Tools Engineer (LPIC-OT 701) — Question 45
Which of the following tasks are completed by docker-compose down when it is used with additional parameters? (Choose two correct answers.)
Answer options
- A. Delete all volumes defined in the composer file.
- B. Delete all containers defined in the composer file.
- C. Delete all networks defined in the composer file.
- D. Delete all images used in the composer file from the Docker nodes.
- E. Delete all images built from the composer file from their registry.
Correct answer: A, D
Explanation
The correct answer A is right because docker-compose down can be used with the '-v' flag to remove volumes defined in the compose file. D is also correct as it can remove images used in the compose file, but other options like B, C, and E do not apply to the 'down' command in the context of additional parameters.