News for hackers. Stuff that matters.
Re:Brief thoughts on Docker by simlevesque on Sunday August 04, 2013 @05:41PM (#6157213)
Could someone explain to me the difference between Docker and Vagrant ?
Re:Brief thoughts on Docker by WestCoastJustin on Sunday August 04, 2013 @05:44PM (#6157220)
Vagrant manages virtual machines. Docker uses linux containers, which is essentially "chroot on steroids" [1]. A linux container is just an isolated process (from which you run your code) on the host machine, like a FreeBSD jail. The host machine can peer into the container, but the container cannot see the host machine. Docker just helps to automate and manages the linux container life-cycle.

p.s. I'm planning on doing a couple screencast episodes about linux containers and docker on my website, which should be online in the next week or so @ http://sysadmincasts.com/

[1] http://lxc.sourceforge.net/

Re:Brief thoughts on Docker by patrickaljord on Sunday August 04, 2013 @06:00PM (#6157267)
Please post your screencasts here.
Re:Brief thoughts on Docker by arms on Sunday August 04, 2013 @10:25PM (#6158079)
Seconded. I'm looking for as much learning material on Docker as possible.
Re:Brief thoughts on Docker by frio on Sunday August 04, 2013 @05:57PM (#6157257)
They're actually quite similar. Docker is to lightweight containers as Vagrant is to virtual machines (more or less anyway; Vagrant lets you configure a lot more at this point). The nice thing is that the Dockerfile makes the whole thing a lot more transparent; VMs are sort of nebulous black boxes, whereas you can follow the construction of the container through the Dockerfile.

I'll be interested in seeing how the ecosystem evolves when Vagrant becomes better able to manage containers.

Re:Brief thoughts on Docker by aeon10 on Sunday August 04, 2013 @06:13PM (#6157312)
There is also a lot of talk about Docker and Vagrant working together. Like using Vagrant to manage Docker containers..
Re:Brief thoughts on Docker by shykes on Sunday August 04, 2013 @10:07PM (#6158033)
The typical use case is to use Vagrant to spin up the machine which then runs docker. I wouldn't recommend managing Docker containers with Vagrant unless you're really heavily invested in a pure vagrant workflow and for some reason cannot afford to call docker commands directly.
Re:Brief thoughts on Docker by pekk on Sunday August 04, 2013 @06:09PM (#6157301)
Fundamentally, Vagrant builds VirtualBox VMs, while Docker builds containers (e.g. LXC containers). Other than that, feature sets and communities are different.
Re:Brief thoughts on Docker by dkoch on Sunday August 04, 2013 @08:25PM (#6157722)
And-- Vagrant has expanded a bit and now can build out a few different types of VMs, including VMWare images and AMIs for Amazon EC2.
Re:Brief thoughts on Docker by datr on Sunday August 04, 2013 @06:15PM (#6157318)
I too, would really like to see a comparison between Docker and Vagrant with an LXC provider (https://github.com/fgrehm/vagrant-lxc).