How To Install and Run Docker on Debian Wheezy

By | 2014/05/04

While perhaps not ideal, the Ubuntu repository provided by also works on Debian Wheezy. Here is the scoop!

Note: This guide is ancient, from 2014!

Docker supports Debian with a Debian repo now:

Install newer Linux kernel from wheezy backports

Docker needs Linux 3.8 or newer so you will need to use a backports kernel.

1. Add the following line to your /etc/apt/sources.list:

deb wheezy-backports main non-free contrib

sudo apt-get update, install the backports kernel, then reboot:

$ sudo apt-get update

$ sudo apt-get -t wheezy-backports install linux-image-amd64 linux-headers-amd64

$ sudo reboot 

Follow Installation instructions for Ubuntu 12.04

2. Next, follow the docs for installing for Ubuntu 12.04. (Bad I know! But it works on Debian Wheezy.) Link is below for reference. I have also put the exact steps needed to follow below.

3. Install apt-transport-https

$ sudo apt-get install apt-transport-https

4. Add docker apt key:

$ sudo apt-key adv --keyserver hkp:// --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

5. Add the Docker repository to your apt sources list, update and install the lxc-docker package.

$ sudo sh -c "echo deb docker main\
> /etc/apt/sources.list.d/docker.list"
$ sudo apt-get update
$ sudo apt-get install lxc-docker

Now verify that the installation has worked by downloading the ubuntu image and launching a container.

$ sudo docker run -i -t ubuntu /bin/bash

Rock on,