Skip to content

Instantly share code, notes, and snippets.

Last active June 6, 2021 18:52
What would you like to do?
Debian - install docker in Debian Jessie
# compiled from
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install apt-transport-https ca-certificates -y
sudo sh -c "echo deb debian-jessie main > /etc/apt/sources.list.d/docker.list"
sudo apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-get update
sudo apt-cache policy docker-engine
sudo apt-get install docker-engine -y
sudo service docker start
sudo docker run hello-world
sudo group add docker
sudo groupadd docker
sudo gpasswd -a $USER docker
sudo service docker restart
Copy link

Thank you...
Nice script worked for me.
I got some trouble installing docker on my old private server.
using this script everything was working :)

Copy link

hpanago commented Jan 7, 2018

Why dist-upgrade someone's system just to install docker?

Copy link

lagaree commented Mar 15, 2018

hi , my english is not very good . I try for code and i have this error ' no candidate for docker-engine'. i m using debian jessie. help me to fix it please

Copy link


Copy link

cetver commented Mar 31, 2020


USER root

RUN rm /etc/apt/sources.list.d/jessie-backports.list

RUN apt-get update

RUN apt-get install -y sudo curl

RUN curl -fsSL -o

RUN sh

RUN apt-get clean

RUN rm -rf /var/lib/apt/lists/* 

RUN rm -rf /tmp/* 

RUN rm -rf /var/tmp/* 

RUN rm -rf /usr/share/doc/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment