Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Debian 7.7 - Install Docker

Docker is a tool that allows one to deploy complex applications with ease because that application is automatically built and held in a "container" that can be run like an executeable.

Debian is a Linux distribution that doesn't require frequent reboots.

Unfortuanately, docker requires a newer version of the kernel than the current stable version of Debian (Wheezy) ships with, so here are the steps you need to perform in order to be able to deploy Docker containers on Debian Wheezy.


Run the following commands on your debian server

sudo apt-get update
sudo apt-get upgrade -y
echo 'deb wheezy-backports main' | sudo tee -a /etc/apt/sources.list
sudo apt-get install curl -y
sudo apt-get install -t wheezy-backports linux-image-amd64 -y
sudo reboot

After the computer has finished rebooting, run:

curl -sSL | sh

Optional - Docker Group

Having to type sudo before every docker command is annoying. If you add yourself to the docker group, then you don't have to do this anymore.

sudo usermod -a -G docker $USER
Last updated: 16th August 2018
First published: 16th August 2018