Need advice about which tool to choose?Ask the StackShare community!
Docker Machine vs Vagrant: What are the differences?
What is Docker Machine? Machine management for a container-centric world. Machine lets you create Docker hosts on your computer, on cloud providers, and inside your own data center. It creates servers, installs Docker on them, then configures the Docker client to talk to them.
What is Vagrant? A tool for building and distributing development environments. Vagrant provides the framework and configuration format to create and manage complete portable development environments. These development environments can live on your computer or in the cloud, and are portable between Windows, Mac OS X, and Linux.
Docker Machine and Vagrant are primarily classified as "Container" and "Virtual Machine Management" tools respectively.
"Easy docker hosts management" is the top reason why over 12 developers like Docker Machine, while over 354 developers mention "Development environments" as the leading cause for choosing Vagrant.
Docker Machine and Vagrant are both open source tools. Vagrant with 18.6K GitHub stars and 3.74K forks on GitHub appears to be more popular than Docker Machine with 5.37K GitHub stars and 1.55K GitHub forks.
Shopify, SendGrid, and Starbucks are some of the popular companies that use Vagrant, whereas Docker Machine is used by Leftronic, Docker, and DNT. Vagrant has a broader approval, being mentioned in 802 company stacks & 475 developers stacks; compared to Docker Machine, which is listed in 43 company stacks and 46 developer stacks.
Pros of Docker Machine
- Easy docker hosts management12
Pros of Vagrant
- Development environments352
- Simple bootstraping290
- Free237
- Boxes139
- Provisioning130
- Portable84
- Synced folders81
- Reproducible69
- Ssh51
- Very flexible44
- Works well, can be replicated easily with other devs5
- Easy-to-share, easy-to-version dev configuration5
- Great3
- Just works3
- Quick way to get running2
- DRY - "Do Not Repeat Yourself"1
- Container Friendly1
- What is vagrant?1
- Good documentation1
Sign up to add or upvote prosMake informed product decisions
Cons of Docker Machine
Cons of Vagrant
- Can become v complex w prod. provisioner (Salt, etc.)2
- Multiple VMs quickly eat up disk space2
- Development environment that kills your battery1