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
- E. --entrypoint
- D. --isolation
The suggested answer is correct
Windows containers offer two distinct modes of runtime isolation:
processandHyper-Visolation
Managing Hyper-V-isolated containers with Docker is nearly identical to managing process-isolated containers. To create a container with Hyper-V isolation using Docker, use the --isolation parameter to set --isolation=hyperv.
Windows Command Prompt
docker run -it --isolation=hyperv mcr.microsoft.com/windows/servercore:ltsc2019 cmdTo create a container with process isolation through Docker, use the --isolation parameter to set --isolation=process.
Windows Command Prompt
docker run -it --isolation=process mcr.microsoft.com/windows/servercore:ltsc2019 cmd
Larcomb
Highly Voted 2 years, 6 months ago
Should be D --isolation
upvoted 16 times
nefaxto
Highly Voted 2 years, 5 months ago
D https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/hyperv-container
upvoted 8 times
GoforIT21
2 years, 4 months ago
Thanks! You're right, I withdraw my comment (figuratively, as I can't delete it here :-).
upvoted 3 times
nawtitoo
Most Recent 5 months, 3 weeks ago
Selected Answer: D
Hyper-V isolation provides stronger isolation by running each container in a lightweight virtual machine, which is useful for running containers that need a higher level of security and isolation from the host and other containers.
upvoted 2 times
SIAMIANJI
6 months, 3 weeks ago
Selected Answer: D
To run a container on a Hyper-V virtual machine, you should specify the --isolation parameter with the value hyperv.
upvoted 3 times
Shailesh866
11 months, 2 weeks ago
Answer is D docker run --isolation hyperv image1
upvoted 1 times
Bolo92
11 months, 4 weeks ago
valid 27.11.23
upvoted 2 times
afridi43
1 year, 2 months ago
Selected Answer: D
Here's how you would run the container with Hyper-V isolation: docker run --isolation hyperv image1 To run a container on a Hyper-V virtual machine, you should specify the --isolation parameter with the value set to hyperv when you run the docker run command. This parameter instructs Docker to use Hyper-V isolation for the container.
upvoted 1 times
leegend
1 year, 5 months ago
Got this question 28-5-23
upvoted 2 times
syu31svc
1 year, 8 months ago
Selected Answer: D
D is correct and provided link supports it
upvoted 1 times
King_Laps
2 years, 3 months ago
It should be D - Isolation
upvoted 2 times
SJHCI
2 years, 3 months ago
Selected Answer: D
Should be D: https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/hyperv-container
upvoted 4 times
[Removed]
2 years, 3 months ago
Selected Answer: D
Isolation
upvoted 2 times
mazahaf
2 years, 3 months ago
D Isolation
upvoted 3 times
ANDREVOX
2 years, 4 months ago
The solution must run the container on a Hyper-V virtual machine. Operating system requirements: The Hyper-V role must be installed before running Hyper-V isolation. --isolation = Container isolation technology where –entrypoint = Overwrite the default ENTRYPOINT of the image. Answer: D
upvoted 4 times
GoforIT21
2 years, 5 months ago
Selected Answer: B
Well, I'm certainly not a Docker expert, ok? But if I read things up on the official Docker reference site for the run command (https://docs.docker.com/engine/reference/run/) I do notice that "--isolation" doesn't (seem to) exist as a parameter for that command. The only answer that does make some sense to me is B (--privileged). I'm happy to be corrected (sources please!), but I do wonder where the unanimity about answer D comes from...
upvoted 2 times
CJCoolio
2 years, 6 months ago
Selected Answer: D
Should be D
upvoted 5 times
Bojana
2 years, 6 months ago
correct, it's D
upvoted 2 times