Valid 701-100 Dumps shared by ExamDiscuss.com for Helping Passing 701-100 Exam! ExamDiscuss.com now offer the newest 701-100 exam dumps, the ExamDiscuss.com 701-100 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 701-100 dumps with Test Engine here:
A Dockerfile contains the statements: COPY data/ /data/ VOLUME /data What happens when the resulting container is started without any additional volume configuration? (Choose two correct answers.)
Correct Answer: C,E
When a Docker container is started and the Dockerfile contains both COPY and VOLUME instructions as follows: COPY data/ /data/ VOLUME /data * C. Existing files from /data/ in the image are copied to the new volume: Docker will copy the contents of /data in the image into the volume when the container is started. This ensures that the initial state of the volume includes the files that were copied into /data during the build process. * E. A new volume is created and mounted to /data/ within the new container: Docker creates a new volume if none is specified and mounts it to /data in the container. This volume persists data outside the container's lifecycle. The other options are incorrect: * A: Files in /data/ in the image are made available in the running container via the volume. * B: Changes to files within /data/ do not affect the Docker image; they only affect the volume. * D: Docker does not raise an error when mounting a volume to a directory that already contains data. References: * Docker Documentation - Managing Data in Containers