QuestionQ59

VerifiedContainer and Container Orchestration

When using a Dockerfile to build a container image, which of the following commands should be used when /tmp/test in the container needs to be mapped to the host?

Explanation

The VOLUME instruction declares /tmp/test as a mount point for externally mounted storage. A host directory is bound to that container path when the container is created or run; ADD and COPY only place files into the image.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!