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  



Stuart is a software developer with a passion for Linux and open source projects.

comments powered by Disqus
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to and affiliated sites. More info.