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?
A.
dockerd --storage-opt dm.mountopt=ContainerFiles
B.
docker run -it -v c:\ContainerFiles Container1
C.
dockerd --storage-opt dm.datadev=/c/ContainerFiles
D.
docker run -it -vc:\ContainerFiles:c:\ContainerFiles Container1
Seems correct
option -V is for mouting volumes and directorys to the host
and you need to specificy path on host and path in container separtetd by a ":"
docker -v c:\sourceDIRonhost:c:\destDIRincontainer
so D is the only option that makes sens
The -v command needs the ":" separated format. If the dest structure doesn't exist, it gets created. See the "Mounting Volumes" section in this Reference: https://blog.sixeyed.com/docker-volumes-on-windows-the-case-of-the-g-drive/#:~:text=In%20a%20Windows%20Docker%20container,assembles%20into%20a%20virtual%20filesystem.
I dont understand why B isnt correct.. Because you can just use C:\ContainerFiles, and if the directory doesnt exist on the container, it creates it...
This section is not available anymore. Please use the main Exam Page.70-740 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
MrRiver
Highly Voted 5 years, 10 months agoJBSPLAT
Most Recent 4 years, 8 months agoVortex_SA
4 years, 10 months agoVortex_SA
4 years, 10 months agoITGEEK
5 years, 10 months ago