Skip to content

Instantly share code, notes, and snippets.

@gordonmurray
Created February 11, 2018 18:55
Show Gist options
  • Save gordonmurray/e3f6d3b0b50c256cbfff488362d7994b to your computer and use it in GitHub Desktop.
Save gordonmurray/e3f6d3b0b50c256cbfff488362d7994b to your computer and use it in GitHub Desktop.
Install Docker
# 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