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?
Click on the arrows to vote for the correct answer
A. B. C. D. E.D
https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/hyperv-containerTo start a container from the image1 on a Hyper-V virtual machine using docker run command, you should specify the --isolation
parameter with the value of hyperv
.
Therefore, the correct answer is option D. --isolation
Explanation:
Docker provides different isolation options for running containers. The --isolation
parameter specifies the container isolation technology that will be used to run the container.
To run a container on a Hyper-V virtual machine, you should use the hyperv
isolation option. This option is only available on Windows Server 2016 or later and requires Hyper-V to be installed and enabled on the host machine.
The --privileged
parameter is used to give extended privileges to a container. It is not related to Hyper-V isolation.
The --runtime
parameter is used to specify the container runtime that should be used to run the container. It is not related to Hyper-V isolation.
The --expose
parameter is used to expose a specific port to the host machine or to other containers. It is not related to Hyper-V isolation.
The --entrypoint
parameter is used to specify the command that should be executed when the container starts. It is not related to Hyper-V isolation.