UPDATE: for Docker 0.6.5, the ubuntu debian package also installs on Debian. You still need to enable IPv4 forwarding as below – then re-start the docker daemon
I’ve been doing some work on Docker – learning golang, Docker internals, and just some of the command line options that I didn’t know I needed to know about.
Because I was in a hurry, I threw an old unused disk into one of my old laptops and installed ubuntu. That was enough for me to learn that I wanted to know alot more about Docker.
So, I’m back to using the loaner T530 with my 128GB SSD in it – its been running Debian since the day I got the SSD, over 2 years ago.
it turns out that on Debian testing (with the 3.10-3-amd64 kernel), its incredibly easy to run docker:
sudo apt-get install lxc wget bsdtar curl golang git aufs-tools mercurial iptables wget --output-document=docker https://get.docker.io/builds/Linux/x86_64/docker-latest chmod +x docker sudo su - #enable IPv4 forwarding echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf sysctl -p /etc/sysctl.conf # set up and mount the cgroup mountpoint echo 'none /sys/fs/cgroup cgroup defaults 0 0' | sudo tee -a /etc/fstab mount /sys/fs/cgroup #OK, you might need to reboot if it fails to mount? ./docker -d &
from there, you can run the docker cli like normal (except that its not in your path yet).
I’m going to pull over the apt pinning installation documentation I wrote for publican the other week and re-write it (and test) for installing docker on Debian Stable, and we’ll all be much happier.