This is a quick start guide for installing docker on Debian 8(Jessie). Let us enable the required repositories for installing Docker.
Add the following lines to the file /etc/apt/sources.list
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free deb-src http://httpredir.debian.org/debian jessie-backports main contrib non-free
Let us update the package list by running the following command
#apt-get update
Now let us install docker from the updated package list.
#apt-get install docker-io
Once the installation we can try pulling a OS layer from the docker repository.
#docker search debian
The output will be something like this
NAME DESCRIPTION STARS OFFICIAL AUTOMATED ubuntu Ubuntu is a Debian-based Linux operating s... 2028 [OK] debian Debian is a Linux distribution that's comp... 585 [OK] google/debian 47 [OK] neurodebian NeuroDebian provides neuroscience research... 10 [OK] jesselang/debian-vagrant Stock Debian Images made Vagrant-friendly ... 4 [OK] eboraas/debian Debian base images, for all currently-avai... 3 [OK] mschuerig/debian-subsonic Subsonic 5.1 on Debian/wheezy. 3 [OK] armbuild/debian ARMHF port of debian 3 [OK] fike/debian-postgresql PostgreSQL 9.4 until 9.0 version running D... 2 [OK] webhippie/debian Docker images for debian 1 [OK] maxexcloo/debian Docker base image built on Debian with Sup... 1 [OK] takeshi81/debian-wheezy-php Debian wheezy based PHP repo. 1 [OK] netw0rkeu/debian Debian base image 1 [OK] kalabox/debian 1 [OK] tomdavidson/debian Simple Debian service with nice add script... 1 [OK] yaronr/debian-wheezy Debian Wheezy, 85mb, with a few extras 0 [OK] visono/debian Docker base image of debian 7 with tools i... 0 [OK] redswarm/debian-dronesim-autobuild This repository contains a Debian image wi... 0 [OK] azukiapp/debian Docker image to run Linux Debian (jessie) ... 0 [OK] razmo/debian Debian base 0 [OK] nathonfowlie/debian-jre Latest Debian image with the JRE pre-insta... 0 [OK] konstruktoid/debian Debian base image 0 [OK] eeacms/debian Docker image for Debian to be used with EE... 0 [OK] mariorez/debian Debian Containers for PHP Projects 0 [OK] reinblau/debian Debian with usefully default packages for ... 0 [OK]
Now let us run the docker debian container using the following command
$ docker run -itP debian /bin/bash