az-800 Practice Question 987
Exam: az-800
Domain: Manage virtual machines and containers
Topic: Create and manage containers
Difficulty: medium
You need to share a physical folder located on your Windows Server container host with a Windows container. Which parameter of the 'docker run' command is used to mount a host volume?
Answer Options
A
-v
B
-p
C
-e
D
-w
Correct Answer
A: -v
Explanation
The -v or --volume flag in the docker run command is used to mount a directory from the Docker host into the container.
Reference: https://docs.docker.com/storage/volumes/