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,

6 thoughts on “How To Install and Run Docker on Debian Wheezy

  1. Michael

    Thank you Thank you Thank you I ahve tried unsuccessfully to install docker for two weeks. I have instaled it before on a nuber of of machines, including this one, but this time, it just refused to install adI tried every trick in the book. But your instructions worked! Thank you thank you thank you


Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.