Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Docker Swarm
Docker Swarm

416
400
+ 1
207
Vagrant
Vagrant

4.4K
3.1K
+ 1
1.5K
Add tool

Docker Swarm vs Vagrant: What are the differences?

What is Docker Swarm? Native clustering for Docker. Turn a pool of Docker hosts into a single, virtual host. Swarm serves the standard Docker API, so any tool which already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts: Dokku, Compose, Krane, Deis, DockerUI, Shipyard, Drone, Jenkins... and, of course, the Docker client itself.

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 Swarm and Vagrant are primarily classified as "Container" and "Virtual Machine Management" tools respectively.

"Docker friendly" is the primary reason why developers consider Docker Swarm over the competitors, whereas "Development environments" was stated as the key factor in picking Vagrant.

Docker Swarm 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 Swarm with 5.63K GitHub stars and 1.11K GitHub forks.

According to the StackShare community, Vagrant has a broader approval, being mentioned in 802 company stacks & 479 developers stacks; compared to Docker Swarm, which is listed in 83 company stacks and 38 developer stacks.

What is Docker Swarm?

Swarm serves the standard Docker API, so any tool which already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts: Dokku, Compose, Krane, Deis, DockerUI, Shipyard, Drone, Jenkins... and, of course, the Docker client itself.

What is Vagrant?

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.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Docker Swarm?
Why do developers choose Vagrant?

Sign up to add, upvote and see more prosMake informed product decisions

What companies use Docker Swarm?
What companies use Vagrant?

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Docker Swarm?
What tools integrate with Vagrant?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to Docker Swarm and Vagrant?
Docker Compose
With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.
Rancher
Rancher is an open source container management platform that includes full distributions of Kubernetes, Apache Mesos and Docker Swarm, and makes it simple to operate container clusters on any cloud or infrastructure platform.
Ansible
Ansible is an IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. Ansible’s goals are foremost those of simplicity and maximum ease of use.
Apache Mesos
Apache Mesos is a cluster manager that simplifies the complexity of running applications on a shared pool of servers.
Kubernetes
Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions.
See all alternatives
Decisions about Docker Swarm and Vagrant
No stack decisions found
Interest over time
Reviews of Docker Swarm and Vagrant
No reviews found
How developers use Docker Swarm and Vagrant
Avatar of Airbnb
Airbnb uses VagrantVagrant

"The best way to ensure that local testing was possible was to normalize people’s dev environments. For this we chose Vagrant. This, combined with Chef, allows us to do our local dev in sandboxed Linux instances running locally via VirtualBox in a configuration as similar to production as possible. In addition to making dev environment setup much easier than it used to be, this ensures that each engineer has a consistent environment that is ready to run tests out of the box. The user SSHs into the local linux server and runs spec commands like they would on their host OS, and generally everything Just Works. Most people on our team combine this with Zeus, which allows the Rails environment to be preloaded for lightning fast (relatively speaking) test runs. Both Vagrant and Zeus have their share of issues, but in practice we’ve found them to be a huge time saver."

Avatar of GHA Technologies
GHA Technologies uses VagrantVagrant

Not blazing fast but we pick Vagrant for all our projects because the console mode without gui leads to a low consumption of ram memory making it the best way for DevOps ready environment requiring less configuration.

Avatar of Cyrus Stoller
Cyrus Stoller uses VagrantVagrant

Vagrant allows me to ensure that anyone I'm collaborating with will be able to test my web application in the same environment. I also use Vagrant to setup VMs that I can use to refine my Capistrano recipes.

Avatar of Dynamictivity
Dynamictivity uses VagrantVagrant

We use Virtualbox in combination with Vagrant during development to ensure a consistent test/development environment. This helps to reduce the number of defects when our software goes to production.

Avatar of Software Antelope
Software Antelope uses VagrantVagrant

Building development environments that closely match real world web environments, enabling more rapid and accurate testing and development.

How much does Docker Swarm cost?
How much does Vagrant cost?
Pricing unavailable
Pricing unavailable