nerdexam
Microsoft

AZ-800 · Question #38

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…

The correct answer is D. --isolation. The 'docker run --isolation=hyperv' parameter instructs Docker to run the container inside a lightweight Hyper-V virtual machine rather than as a standard Windows process-isolated container. Hyper-V isolation provides a stronger security boundary by giving each container its…

Manage virtual machines and containers

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 run command? docker

Options

  • A--expose
  • B--privileged
  • D--isolation
  • E--entrypoint

How the community answered

(39 responses)
  • A
    3% (1)
  • B
    5% (2)
  • D
    92% (36)

Explanation

The 'docker run --isolation=hyperv' parameter instructs Docker to run the container inside a lightweight Hyper-V virtual machine rather than as a standard Windows process-isolated container. Hyper-V isolation provides a stronger security boundary by giving each container its own dedicated kernel. This is in contrast to '--isolation=process' (the default on Windows Server). The other options are unrelated: '--expose' opens network ports, '--privileged' grants extended Linux privileges, and '--entrypoint' overrides the container's default command.

Topics

#Windows containers#Hyper-V isolation#docker run command#Container isolation modes

Community Discussion

No community discussion yet for this question.

Full AZ-800 Practice