I have the following quote from docker's latest release note -

Like all major IaaS implementations, Openstack relies heavily on virtual machines. Although there will always be a case for VMs in certain applications, we believe lightweight containers are a great alternative in many scenarios, especially for payloads which are CPU- and memory-intensive and suffer from the performance overhead of VMs.

The above makes it clear that the advantage of docker vs VM's lies in CPU and memory intensive payloads, so my question is what is the advantage VM's have over docker ? Or when should I use VM's ver docker ? As I find that most of my scenarios are well serverd by docker.

有帮助吗?

解决方案

VM advantage over docker is that VM actually emulate hardware. You will have much finer control over the CPU, network and about everything where on Docker, you will be limited by host's hardware.

Moreover, with VM, you can run non-linux host like Windows, BSD or Solaris. Docker is limited by its linux kernel dependency.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top