Solved

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

Question 20

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