Last active
June 6, 2021 18:52
-
-
Save frgomes/a6f889583860f5b330c06c8b46fa0f42 to your computer and use it in GitHub Desktop.
Debian - install docker in Debian Jessie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# compiled from https://docs.docker.com/engine/installation/linux/debian/#/debian-jessie-80-64-bit | |
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 https://apt.dockerproject.org/repo debian-jessie main > /etc/apt/sources.list.d/docker.list" | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --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 |
FROM ***CHANGE-ME***
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 https://get.docker.com -o get-docker.sh
RUN sh get-docker.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
Thanks!