Installing Docker on Debian Jessie

Docker is a solution for managing light weight containers. To install Docker on Debian Jessie, we need to first install packages to allow apt to use a repository over HTTPS. We can do this using the command:

sudo apt-get install \
     apt-transport-https \
     ca-certificates \
     curl \
     gnupg2 \

Next we need to add Docker’s official GPG key using the command:

curl -fsSL$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -

After that we need to install the apt repository using the command:

sudo add-apt-repository \
   "deb [arch=amd64]$(. /etc/os-release; echo "$ID") \
   $(lsb_release -cs) \

Next we need to install Docker Community Edition using the command:

sudo apt-get install docker-ce

Next we can test the installation by running the hello world Docker Container. We can do this using the command:

sudo docker run hello-world

See the official Docker installation guide for Debian for details on installing Docker on Debian Jessie

Published 22 Nov 2017

Pak Jiddat provides open source scripts and tutorials related to Web Development and System Administration.