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.