DevOps Tools Engineer (LPIC-OT 701) — Question 33
Which of the statements below are true about the volume created by the following command? (Choose two correct answers.) docker run ""v /data ""ti debian
Answer options
- A. The new /data volume contains a copy of the complete container's base image.
- B. The volume containing the container's rootfile system is retained until the /data volume is deleted.
- C. The /data volume is discarded when the container terminates.
- D. The /data volume can be attached to another Docker container.
- E. If the command is run a second time, another volume for /data is created.
Correct answer: D, E
Explanation
Option D is correct because Docker volumes can be reused across containers, allowing the /data volume to be attached to another container. Option E is also correct as executing the command again creates a new volume for /data, since Docker creates a new volume if one with the same name does not already exist. The other options are incorrect because they misstate how volumes function in relation to container lifecycles and data retention.