Installation, Storage, and Compute with Windows Server 2016 — Question 276

You have a Windows container host named Server1.
On Server1, you create a container named Container1.
You need to mount C:\ContainerFiles from Server1 to Container1.
What should you run?

Answer options

Correct answer: D

Explanation

The correct command is D because it properly specifies the volume mount using the -v option, mapping the host directory C:\ContainerFiles to the same path within the container. Option A and C relate to Docker daemon configurations rather than running a container, and option B is incorrect as it does not specify the target path inside the container.