I use it all the time. It does exactly what I need. I'm usually either a one man dev team or the only experienced person in the room and I don't have the time or resources to do all the work that docker requires of me. I've been to a bunch of docker meetups because everyone loves the thing but it just seems like a hassle. I tried switching 3 times (2014, 2015, and 2016) and aborted each time after a couple days of grief.<p>I posit that people who use and love docker have larger teams with proper full-time admins and not just 1-3 people wearing all the hats. This is fine. I just have to be super judicious with my time.<p>I've also heard that many of the benefits come if you have a lot of servers running that are talking to each other. I'm not really doing that. There's also supposedly some lower overhead costs in using it but 32GB of ram which is nothing special these days has been more than sufficient for my virtualbox needs; heck I usually have 28 or so left over.<p>Vagrant+virtualbox I use all the time (here's the vagrantfile I am currently using: <a href="http://9ol.es/Vagrantfile" rel="nofollow">http://9ol.es/Vagrantfile</a> - no chef or puppet stuff I just do it manually) . It doesn't do much and that's perfect, just what I'm looking for.
I see a lot of comparisons here to Docker, but IMO they solve two different use-cases. To me, Vagrant is most useful when I'm developing a project and want a reproducible yet easily mutable development environment. The Vagrantfile specifies packages to install and setup commands to run much like a Dockerfile, but the project source code directory is mounted as a volume so you can edit locally, re-compile & run remotely, etc. You could probably achieve something similar with Docker, but then you'd have to customize the mounts and deal with it ending up in different paths on different developers' machines & such. Vagrant and the ability to just clone a repo & run "vagrant up" is still very convenient.
From personal experience, I use docker-compose to create most development environments today. The main reason for this is that maintaining a vagrant (base) box is cumbersome, while maintaining a Dockerfile and/or a docker-compose file is not.<p>However, there are still cases that I think Vagrant is far superior. I recently had a security-related use-case that wanted me to very precisely replicate a common production environement (LAMP w/ exim4 MTA). On docker this is complicated. On Vagrant it's very simple.<p>So I don't think it's dead or dated, even though Docker has replaced it for a large range of my own use cases.
I keep a Vagrant box in parallel with nearly every server I manage, as a staging/testing instance where I can check new configuration. In this capacity it's great, though I find it a little heavyweight for use as a dev environment for individual applications. Since people are making disparaging comments comparisons to Docker, I'll comment that for me they serve two different purposes: I use Vagrant for managing server configuration, and Docker for managing isolated applications, many of which may be running on a given server. For low-friction development, nothing beats running the stuff locally, but for languages/environments I don't use frequently and deployment, Docker+Vagrant are perfect.<p>Also, I build a Debian repository at <a href="https://vagrant-deb.linestarve.com" rel="nofollow">https://vagrant-deb.linestarve.com</a> which serves the .deb files so you don't have to update them manually whenever a new version of Vagrant is released.
We give Vagrant boxes to developers of short term projects. Some of them have Windows and we think it's easier than docker there. Furthermore our production environment is not dockerized, so it would be extra work for us. However provisioning a Vagrant box is not a zero errors experience. There are dependency problems and the occasional PC that won't run it no matter what. Maybe an image on a VPS provider would be easier to maintain and have a lower TCO.
About a year ago I was on a big vagrant craze. We develop applications in JS and our primary deployment platform was Linux. We were hoping that if we developed in a linux environment, it would work better and it seemed like a pretty good idea. After a lot of usage, its slowness and quirks/bugs made it a bigger pain to use.<p>At least for our usage, it was pretty simple to switch our JS dev environment to support Windows (the primary development platform of our developers) without much hassle.<p>For now, If I need a VM, I'll stick to virtual box and maintain a persistent development environment, rather than something configurable and replicatable.<p>In the future I'd love to see someone take something like Docker and turn it into a development environment platform.
I use it on a team of 3. The main reason for not using Docker is 2 devs use mac full time, and I have a macbook air for when I'm not at home w/ my Linux desktop. So we'd have to use boot 2 docker anyways, which uses Vagrant. So might as well just use Vagrant. Its not perfect. A lot of file watchers do not work right or are slow. "Git status" just hangs the box, and nodemon / pm2 watch don't work unless I enable a special "polling" flag. But it beats the status quo of on boarding a new dev & telling them to manually setup a dev environment. On boarding new developers went from months to an hour, which is mainly due to Ansible... but Vagrant is a means to being able to test Ansible scripts.<p>Another gripe is we have to edit the Vagrantfile & adjust the CPU / memory usage for each developer. There's no way to have a local override AFAIK.<p>We also have another Vagrant box that emulates our IOT devices, which runs X server. That's been a huge productivity gain in that we can just change code live, instead of having to rsync code to a physical device to test it. .
I use Vagrant all the time. It's fan-freaking-tastic for testing application deployments. I can write up some Ansible/Puppet/Salt code, do a vagrant up, and have some confidence that my deploy logic is sound.
I use Vagrant+VirtualBox all the time for my development environments. I love Docker too but I find that Docker has a higher barrier of entry and comes with more mental overhead. I find that Docker works really well for production environments.<p>Having Vagrant with shell script provisioning makes it super simple to create reproducible dev environments that works for everyone on the team.
My manager just got back from Hashicon in Austin. I asked him what his main takeaway was and that was that Vagrant is kind of dead. I mean there is still Packer, and Hashicorp is absolutely still around, so I don’t think it’s that bad at all.<p>Also when I say dead I mean “not sexy conference talk anymore”, so whatever that’s worth,
From the perspective of someone who works at Docker, we still use it to quickly spin up machines to test the installation of Docker on various kernel setups / OS's.<p>It still has its use-cases and Docker can't cover some of those special test cases since it shares the kernel with the host system.
Where I work, getting Vagrant working is more feasible than getting Docker working, because we're stuck on a pretty old RHEL that doesn't have a new enough kernel to run Docker but does have VirtualBox in the standard image. I certainly have a sense that the latter is eating the former's lunch, but we are still using Vagrant for testing and I still like it. I last used it a couple months ago to help a friend get started with PHP. It's a very good replacement for things like MAMP that embed a database, web server and programming language for new developers.
(Disclaimer - ex HashiCorp employee)<p>I use Vagrant daily. I mostly work on operating systems other than Linux (SmartOS, FreeBSD), so Docker is not a replacement for me.<p>In general it works well enough with VMWare - Virtualbox doesn’t support the features I need. The closed source nature of the Fusion plugin is annoying, given that there are (basically) show-stoppin bugs which have not been resolved in months. However, Vagrant or some
derivative has a long future ahead, at least for those of us not on Linux.
Vagrant boxes are great for fast/simple VM needs.<p>Docker is probably better for larger and longer term use.<p>Either is pretty damn good for development machines, with Vagrant being slightly easier to hack on.
The repo has updates from just a few days ago, and IIRC, v2 just came out at the beginning of last month.<p>So I'd say no to "Is it dead?" Is it dated? Well I stopped using it once I found Docker (years ago), but can't say much for others. I'd be using it if I targeted other hosting platforms than Linux.<p><a href="https://github.com/hashicorp/vagrant" rel="nofollow">https://github.com/hashicorp/vagrant</a>
Vagrant still has a place in the world, but for many cases Docker is taking over. The prime reason that docker is what we're using is that from dev instances of services to dropping a production container on your desktop it's easy to test similar to what is shipping.<p>That said, Vagrant has a lot of nice tooling for simple development workflows (e.g. Vagrantfile)
Our team still use it. I built the dev environment with Vagrant.<p>We are using Kubernetes in the dev environment, and Docker Native simply doesn't work for what we want to do. Back then, about 9 months ago when I put this together, Minkube did not support native Linux, so I ended up creating the Packer scripts that baked in a customized Nanokube and loaded it with the tooling.<p>The current team has a mixed bag of people on Windows and a few people on Mac. Bash for Windows wasn't mature enough at the time -- and even if it were, we'd still have to create some sort configuration management to get it installed for people.<p>Our team is small and we've since been swamped with writing new features. I'll probably do a refresh of the dev environment in the "dead" months in Nov and Dec -- signing up for a Vagrant Enterprise account, ditching Nanokube for Minikube, fix a bunch of bugs.
We use vagrant in conjunction with docker and other container services. Vagrant is our development box, new devs pull down and install the vagrant box, and that box will have a lot of configuration built in. Makes it very easy for new developers to start running our docker containers and related processes.
As others have pointed out, use-cases for Vagrant still exist, but docker containers is a more popular VE for development. Docker very much still has stuff to work through (ex. docker storage) to believe there's going to be a hot new VE sooner rather than later.
In order of complexity you have:
* shell scripts
* AMIs
* vagrant
* docker<p>Depending on what you need, any one of those may be a valid option for standing up a box.<p>I could use a shell script to essentially do everything to prepare a box.<p>If it's a stateless server, then creating an AMI is simple and the image can be used to drive auto-scaling groups etc.<p>If my local development scenario is more complicated or I'm doing it a lot, maybe vagrant is the better choice. Because then it can setup the box as well as provision a vm with virtualbox.<p>But if you're doing something in the cloud or something beyond an auto-scaling group, I would look to docker for inspiration.<p>That's where I'm at.
I've only started using seriously in the company I just started in.<p>They gave me a good computer so I didn't have problems with the spinning up of the vms but I'm pretty sure that that load would slow my own computer to a crawl. I also can't say I'm a fan of the syntax of the Vagrantfile but that might be because I'm too used to docker-compose.<p>All in all, I think it's a good tool, but I think I'd use docker for most use cases, including the one I'm working on, but it's too late to change vagrant there.
I moved away from it.<p>Today I have a Java system which composes bash scripts out of fragments and puts them in the cloud-init data for virtual machines. The machine does whatever it is going to do, then it drops a message to a message queue to say it is done and trigger a pleasant chime if successful, otherwise a painful scream if failed. The Java program automatically downloads the cloud-init logs and can usually point out where the failure happened if there was a failure.
I use Vagrant when I want to screw around with Linux without spending money spinning up a box in a random cloud service. I use docker-compose for development.
We use Vagrant at work and it serves us well. We do all of our provisioning with Chef however, using one cookbook for our Vagrant box and web servers. This allows us to achieve a more-or-less consistent configuration across all environments.<p>One of these days, I'd like to do a deep dive into Nix. I'm not sure it can really be compared to Vagrant or Docker, but the idea of purely functional provisioning appeals to me.
I use Vagrant as a common means of describing a VM. A VBox user on Mac or Linux can launch my box using a known, reputable base image.<p>The same code and constructs can be used in Vagrant as with other elements or phases of deployment; scripts, runbooks, playbooks, recipies - all can be used locally the same way they might be at cloud scale.<p>It's a major win for me, I hope Vagrant has a long and fruitful life.
I was wondering the same thing. There are very few Vagrant tutorials later than 2013-14.<p>Apparently it has been succeeded (2015) by Otto (<a href="https://www.hashicorp.com/blog/otto/" rel="nofollow">https://www.hashicorp.com/blog/otto/</a>), though I'd never heard of Otto until just now.
I use vagrant a lot for testing provisioning scripts. For example, having an Ansible setup with 2-app, 3-mongo and 1 redis server makes the script complicated, so I use >close< to production ( DO / Linode ) Linux distribution and try the scripts on my local machine. Works like charm.
I use it for personal projects and schoolwork, mainly to provide me with convenient to configure headless Linux boxes on my Macs without needing to depend on network connectivity to ssh into a remote box (after the initial provisioning and occasional apt-get/yum updates).
I use Ansible + Vagrant for development env only and for some times to test on different env too like staging etc.<p>I try to shift my env to docker but faced alot issues in configuring and running some scripts on docker-compose up.
We still have a team using it to manage its dev environment but I can see it withering. Nowadays I just use it to launch a painless lxc or download a vbox image without hassle.
Kinda infuriating when people assume sw is dead because there is no longer hype around it.
Vagrant is still alive and used. It still has its warts but it's a stable piece of software.
Not long ago they released 2.0.