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

boot2docker

275
210
+ 1
95
Vagrant

11.3K
7.7K
+ 1
1.5K
Add tool

boot2docker vs Vagrant: What are the differences?

Developers describe boot2docker as "Lightweight Linux for Docker". boot2docker is a lightweight Linux distribution based on Tiny Core Linux made specifically to run Docker containers. It runs completely from RAM, weighs ~27MB and boots in ~5s (YMMV). On the other hand, Vagrant is detailed as "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.

boot2docker and Vagrant can be categorized as "Virtual Machine Management" tools.

Some of the features offered by boot2docker are:

  • Kernel 3.14.1 with AUFS, Docker 0.10.1, LXC 0.8.0
  • Container persistence via disk automount on /var/lib/docker
  • SSH keys persistence via disk automount

On the other hand, Vagrant provides the following key features:

  • Boxes
  • Up And SSH
  • Synced Folders

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

boot2docker 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 boot2docker with 7.99K GitHub stars and 1.14K GitHub forks.

According to the StackShare community, Vagrant has a broader approval, being mentioned in 802 company stacks & 478 developers stacks; compared to boot2docker, which is listed in 70 company stacks and 30 developer stacks.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of boot2docker
Pros of Vagrant
  • 43
    Lightweight
  • 35
    Use docker when it's not natively possible
  • 11
    Use it for fast demo without big image
  • 3
    Easy to use
  • 3
    Containers
  • 352
    Development environments
  • 290
    Simple bootstraping
  • 237
    Free
  • 139
    Boxes
  • 130
    Provisioning
  • 84
    Portable
  • 81
    Synced folders
  • 69
    Reproducible
  • 51
    Ssh
  • 44
    Very flexible
  • 5
    Works well, can be replicated easily with other devs
  • 5
    Easy-to-share, easy-to-version dev configuration
  • 3
    Great
  • 3
    Just works
  • 2
    Quick way to get running
  • 1
    DRY - "Do Not Repeat Yourself"
  • 1
    Container Friendly
  • 1
    What is vagrant?
  • 1
    Good documentation

Sign up to add or upvote prosMake informed product decisions

Cons of boot2docker
Cons of Vagrant
    Be the first to leave a con
    • 2
      Can become v complex w prod. provisioner (Salt, etc.)
    • 2
      Multiple VMs quickly eat up disk space
    • 1
      Development environment that kills your battery

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    What is boot2docker?

    boot2docker is a lightweight Linux distribution based on Tiny Core Linux made specifically to run Docker containers. It runs completely from RAM, weighs ~27MB and boots in ~5s (YMMV).

    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.

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

    What companies use boot2docker?
    What companies use Vagrant?
    See which teams inside your own company are using boot2docker or Vagrant.
    Sign up for StackShare EnterpriseLearn More

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

    What tools integrate with boot2docker?
    What tools integrate with Vagrant?

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

    What are some alternatives to boot2docker and Vagrant?
    Docker Machine
    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.
    Photon
    The fastest way to build beautiful Electron apps using simple HTML and CSS. Underneath it all is Electron. Originally built for GitHub's Atom text editor, Electron is the easiest way to build cross-platform desktop applications.
    Ubuntu
    Ubuntu is an ancient African word meaning ‘humanity to others’. It also means ‘I am what I am because of who we all are’. The Ubuntu operating system brings the spirit of Ubuntu to the world of computers.
    Docker
    The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere
    RancherOS
    It makes it simple to run containers at scale in development, test and production. By containerizing system services and leveraging Docker for management, the operating system provides a very reliable and easy to manage containers.
    See all alternatives