aerokube / windows-images

Step by step instructions for building Docker images with Windows
Apache License 2.0
221 stars 44 forks source link

Question - Why VM inside docker container?. #33

Open raja3000 opened 4 years ago

raja3000 commented 4 years ago

I am trying to understand this solution and please correct me if i am wrong

Based on my understanding, we are building Windows Virtual Machine (VM) and running the VM inside the docker container.

Since we can run the VM directly on the host machine using kvm-qemu, what is the advantage of running the Virtual Machine inside a docker container?. Is there any performance improvements?. Please suggest the advantage and sample use-cases if any

vania-pooh commented 4 years ago

@raja3000 you are understanding it correctly. Main reasons are: 1) It's easier to distribute containers with VM + its memory snapshot inside. 2) Selenoid and Moon and working with containers only. 3) Containers give better network \ CPU \ memory isolation when running several VMs in parallel.