3 ms·
For someone who doesn't know a lot about this why use vagrant over docker?
by mrfusion 11y ago
For someone who doesn't know a lot about this why use vagrant over docker?
- n0us 11y agoVagrant is a way of setting up virtual machines. For example I am not using docker (yet, it's in progress) but I use Vagrant on my Mac to run an Ubuntu vm for my dev environment. I even use it on my Ubuntu desktop which is running a different version of Ubuntu. I don't have to pollute my mac by installing a bunch of stuff and I get to work in an environment that is more or less identical to my deployment server. You don't use Vagrant for deployment, its just a tool for making sure that everyone on the team is using the same environment. Vagrant just makes it very easy to set up because you have a "Vagrant file" that gets checked into the repo which will automatically set up the vm using shell scripts, Puppet, Chef, etc. Docker on the other hand is a tool that assists in isolating Linux processes. You might have many VMs running in a private cloud and process isolation makes it simpler and easier to more efficiently utilize computing resources.
- splix 11y agoIt's different levels of VMs. I use Vagrant + Docker. Because docker have some problems on Mac OS with shared folders. So I run a Vagrant image with Ubuntu configured as docker machine. Also I can setup few Vagrant VMS with Docker containers inside, to simulate cluster.