Skip to content

Instantly share code, notes, and snippets.

@tomaszklim
Created June 7, 2019 15:10
Show Gist options
  • Save tomaszklim/43c7beda7dc8d1d0b0046110179038ec to your computer and use it in GitHub Desktop.
Save tomaszklim/43c7beda7dc8d1d0b0046110179038ec to your computer and use it in GitHub Desktop.
Install Docker stack on Ubuntu 18.04 LTS
#!/bin/sh
apt install apt-transport-https ca-certificates curl software-properties-common
echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" >/etc/apt/sources.list.d/docker.list
curl -fsSL https://download.docker.com/linux/ubuntu/gpg |apt-key add -
apt update
apt install docker-ce 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