4 ms·
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, rig
by est 13y ago
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.)
- shykes 13y agoYes 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.
- wmf 13y agoBut Docker can't run on 10.04, right?
- jessaustin 13y agoIt 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...
- shykes 13y agoI 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!
- manojlds 13y agoThe kernel version has to be the same.
- aegiso 13y agoNo, it just has to be modern enough to support LXC/Docker.
- alexwright 13y agoNo 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.
- nl 13y agoYes 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
- shykes 13y agoThere 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
- nl 13y agoThat's really useful - I've often wondered how to do it, and I've never seen it put so succinctly.