8

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.

Luca G. Soave
  • 12,271
  • 12
  • 58
  • 109
murtaza52
  • 46,887
  • 28
  • 84
  • 120
  • 3
    It's worth noting that OpenStack supports LXC as a back-end, so you can run OpenStack with containers instead of VMs if you want to. – Lorin Hochstein Jun 06 '13 at 12:51

1 Answers1

9

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.

creack
  • 116,210
  • 12
  • 97
  • 73