difference between VM, Docker and Vagrant区别

来源:互联网 发布:mysql 5.1.65.tar.gz 编辑:程序博客网 时间:2024/05/20 10:54

VM:
 VirtualBox, VMware


Docker


Vagrant
using which you can create VMs or container.
Itinteracts with virtualization or Container platforms like VirtualBox, VMware or Docker to provision VMs or container.

vagrant cannot create VMs or containers without virtualization platforms like VirtualBox, VMware or Docker

The main advantage of vagrant is that it provides a mechanism toreproduceenvironments.

Once you write a VagrantFile to create the environment you desire then you can provide a copy of that VagrantFile to other people to create the exact replica of the environment you have created. 

 In the following figure VirtualBox is used as a platform to create VMs however Vagrant is used to configure the VM by setting OS version, Network address, Memory allocation, number of CPUs assigned etc.

https://www.quora.com/Whats-the-difference-between-a-VM-Docker-and-Vagrant