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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With