Skip to content

Instantly share code, notes, and snippets.

@tomaszklim
Last active June 7, 2019 15:12
Show Gist options
  • Save tomaszklim/777e529fb2fa8dca4c5fd1bdddc67b96 to your computer and use it in GitHub Desktop.
Save tomaszklim/777e529fb2fa8dca4c5fd1bdddc67b96 to your computer and use it in GitHub Desktop.
Install Docker stack on Ubuntu 16.04 LTS
#!/bin/sh
# warning: this installs old 17.05.0-ce version, see my install-docker-ubuntu18.sh gist for the current version
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" >/etc/apt/sources.list.d/docker.list
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
apt-get update
apt-get install docker-engine python-pip
pip install docker-compose
getent passwd circleci && usermod -aG docker circleci
getent passwd jenkins && usermod -aG docker jenkins
getent passwd hudson && usermod -aG docker hudson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment