Created
February 11, 2018 18:55
-
-
Save gordonmurray/e3f6d3b0b50c256cbfff488362d7994b to your computer and use it in GitHub Desktop.
Install Docker
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
# prerequisites for docker | |
apt-get update | |
apt-get -y install apt-transport-https | |
apt-get -y install ca-certificates | |
apt-get -y install curl | |
apt-get -y install software-properties-common | |
# docker repos | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \ | |
&& echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" >> /etc/apt/sources.list.d/additional-repositories.list \ | |
&& echo "deb http://ftp-stud.hs-esslingen.de/ubuntu xenial main restricted universe multiverse" >> /etc/apt/sources.list.d/official-package-repositories.list \ | |
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 437D05B5 \ | |
&& apt-get update | |
# docker | |
apt-get -y install docker-ce | |
# permissions | |
sudo usermod -a -G docker jenkins | |
sudo chown root:jenkins /var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment