News for hackers. Stuff that matters.
Re:How is Docker.io different from a normal virtual machine? by est on Friday September 13, 2013 @01:44AM (#6378862)
I always wanted to ask a question about docker, if the local devel machine is ubuntu 12.04, I can not deploy my docker image build to a 10.04 ubuntu server, right? (Unless you run a 12.04 virtual machine or something.)
Re:How is Docker.io different from a normal virtual machine? by nl on Friday September 13, 2013 @02:30AM (#6378996)
Yes you can do that, but it only supports 64bit operating systems at the moment and you need a kernel that supports linux containers & union file systems.

I doubt there are packages for 10.04 so you'd be on your own getting it working

Re:How is Docker.io different from a normal virtual machine? by shykes on Friday September 13, 2013 @02:49AM (#6379045)
There are no official images for Ubuntu 10.04, but you can create your own with:

    debootstrap lucid ./rootfs && tar -C ./rootfs -c . | docker import nl/ubuntu-lucid
You can then run 10.04 containers with:

    docker run -i -t nl/ubuntu-lucid bash
Re:How is Docker.io different from a normal virtual machine? by nl on Saturday September 14, 2013 @08:22AM (#6385362)
That's really useful - I've often wondered how to do it, and I've never seen it put so succinctly.
Re:How is Docker.io different from a normal virtual machine? by shykes on Friday September 13, 2013 @01:49AM (#6378875)
Yes you can. Docker doesn't care about the underlying distro, as long as it can run on it. You can build a container on a Red Hat host machine, and transfer it to an Ubuntu host machine - it will run just fine on both.
Re:How is Docker.io different from a normal virtual machine? by wmf on Friday September 13, 2013 @12:08PM (#6381347)
But Docker can't run on 10.04, right?
Re:How is Docker.io different from a normal virtual machine? by jessaustin on Friday September 13, 2013 @03:22PM (#6382545)
It depends on the kernel version rather than the distro version. So if the 3.8 kernel is compatible with the 10.04 distro, you'd be fine.

Sorry I don't actually know if that kernel is compatible with such an old distro. I sort of doubt many people would have been interested enough to do the backport...

Re:How is Docker.io different from a normal virtual machine? by shykes on Friday September 13, 2013 @07:58PM (#6383998)
I haven't tested docker on Ubuntu 10.04. But you can probably expect the following:

1) You will need to boot a 3.8+ kernel, which is definitely possible but probably not available as a 10.04 package (unless someone has backported it).

2) Docker has a few userland dependencies as well. Most of them are extremely stable (tar, iptables, ip). But the lxc userland scripts have changed a lot in the last couple years. Docker is known to work with version 0.8, and that version might not be available in Ubuntu 10.04.

In short, I expect that docker will not work out of the box on a vanilla 10.04 system, but it can be made to work with a fairly small amount of customization.

If you're interested in trying it out, feel free to join the #docker IRC channel on Freenode. We'll help you out!

Re:How is Docker.io different from a normal virtual machine? by manojlds on Friday September 13, 2013 @02:15AM (#6378955)
The kernel version has to be the same.
Re:How is Docker.io different from a normal virtual machine? by aegiso on Friday September 13, 2013 @02:21AM (#6378973)
No, it just has to be modern enough to support LXC/Docker.
Re:How is Docker.io different from a normal virtual machine? by alexwright on Friday September 13, 2013 @03:46AM (#6379191)
No there isn't a hosted child kernel. What the parent means is that the guest and host are using the same kernel instance, and the distro needs to be able to handle that to run.