News for hackers. Stuff that matters.
Re:Fig – Fast, isolated development environments using Docker by Kiro on Friday February 28, 2014 @02:37PM (#7320949)
Can someone explain the differences between Fig, Docker and Vagrant? Without knowing anything about server administration they seem to be doing the same thing, which is obviously wrong since Fig is built on top of Docker.
Re:Fig – Fast, isolated development environments using Docker by fideloper on Friday February 28, 2014 @02:46PM (#7320996)
Vagrant builds virtual machines for you. Like another computer inside of your computer.

Docker can run within a VM, or on your computer if you're not on a Macintosh (Mac's kernel is...for now...not supported). I usually create a Vagrant virtual machine of CoreOS, which works with Docker very nicely.

Docker is a utility which uses "containers". Docker containers are usually used to run one process at a time (apache or mysql or python or grep or anything, really).

You can connect multiple docker containers to create a functioning app. Running one for database and other one for running your code would a simple example.

Fig tries to make the process of making Docker instances work together easy.

Re:Fig – Fast, isolated development environments using Docker by loganekz on Friday February 28, 2014 @07:57PM (#7322576)
The OS X kernel will not be supported.

Docker is built upon features available only in the Linux kernel (LXC, cgroups)

Re:Fig – Fast, isolated development environments using Docker by zachlatta on Friday February 28, 2014 @08:52PM (#7322729)
However, Docker is officially supported on OS X through https://github.com/boot2docker/boot2docker
Re:Fig – Fast, isolated development environments using Docker by jimmcslim on Saturday March 01, 2014 @06:02PM (#7326554)
It is officially supported by virtue of boot2docker booting a small Linux kernel in a VM (VirtualBox).
Re:Fig – Fast, isolated development environments using Docker by kayoone on Friday February 28, 2014 @02:48PM (#7321006)
Vagrant is basically a layer on top on virtualbox/vmware that helps you manage VMs more efficiently. It makes it easy to setup your local development enviroments in a vm and replicate the production enviroment for example, instead of installing all the services locally on your machine with homebrew and whatnot and polluting your desktop experience.

Docker is afaik Linux only and uses some kind of container virtualization that makes it possible to run services in a separated virtual enviroment on a per process basis without the need to spin up a full vm with all the overhead. Also these docker containers seem to be portable to different machines pretty easily, making it easy to share enviroments among developers.

Now Fig looks like something to make managing docker containers easier.

Re:Fig – Fast, isolated development environments using Docker by rrosen326 on Saturday March 01, 2014 @08:09AM (#7324101)
I'm still missing a piece of the puzzle. With Vagrant, though heavy weight, I have a completely defined system. If I spin up my production server using the same definition (I use ansible) as my Vagrant config, I guarantee the same outcome. Seems perfect. With Docker, since it relies on the underlying os, it seems I could run into compatibility problems. I understand the "lightweight" aspect, but if I have compatibility problems, that seems not worth the benefit. OR is the issue that those compatibility problems are illusory - Ubuntu 11 will be the same as Ubuntu 12 and CoreOs xx and LinuxZ ZZ? With Docker, what do I lose vs. Vagrant and what do I gain that makes that worthwhile?
Re:Fig – Fast, isolated development environments using Docker by fps on Saturday March 01, 2014 @08:45AM (#7324168)
with docker, your guest machines run the same kernel as your host, but a different root filesystem and init system. the result is that you can run centOS on docker on Ubuntu, but you'll get centOS with the Ubuntu kernel. So, you lose some flexibility with the kernel of your VM. But a docker container is extremely light weight. it boots in a few hundred milliseconds, and it only costs a small amount more resources to run a service inside docker than if you had just run the service on the host system directly.
Re:Fig – Fast, isolated development environments using Docker by andrewcooke on Friday February 28, 2014 @02:53PM (#7321037)
assuming you know what a vm is...

vagrant is a manager for vms. it lets you manage vms (by default on virtualbox, but you can use other vm hosts too).

docker is a manager for linux containers. linux containers are linux only and a bit like chroot on steroids - they use the same linux kernel as the host, but with a different file system. so they're like lightweight, linux-only, vms. they're so lightweight that they're being "sold" as containers for single applications (so you then use docker like a package management service, installing postgres, for example, as a docker container - often this can use a separate vm as the host, so that you're not making changes to your main machine, or because you're using a mac).

fig is new to me but seems to be a wrapper around docker that simplifies some things.

the above is a simplification - for example, i'm pretty sure vagrant these days can also manage docker images (linux containers + docker metadata).