Question
You have a Windows Server container host named Server1 and a container image named image1.
You need to start a container from image1. The solution must run the container on a Hyper-V virtual machine.
Which parameter should you specify when you run the docker run command?
- A. --expose
- B. --privileged
- C. --runtime
- D. --isolation Correct
- E. --entrypoint
Explanation
The --isolation parameter is used to specify the isolation technology for Windows containers. Setting it to 'hyperv' ensures that the container runs in a Hyper-V isolated environment, which meets the requirement of running the container on a Hyper-V virtual machine.