Solved

A Dockerfile Contains the Statements: COPY Data/  /Data/ VOLUME /Data What

Question 18

Multiple Choice

A Dockerfile contains the statements: COPY data/  /data/ VOLUME /data What happens when the resulting container is started without any additional volume configuration?


A) Files existing in / data / in the image are not available in the running container. Files existing in / data / in the image are not available in the running container.
B) Changes to files within / data / affect the Docker image and all other containers derived from it. Changes to files within / / affect the Docker image and all other containers derived from it.
C) Existing files from / data / in the image are copied to the new volume. Existing files from / / in the image are copied to the new volume.
D) An error is raised because / data / already contains data when the volume is mounted. An error is raised because / / already contains data when the volume is mounted.
E) A new volume is created and mounted to / data / within the new container. A new volume is created and mounted to / / within the new container.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents