Skip to content

Instantly share code, notes, and snippets.

@devster
Last active June 28, 2018 08:36
Show Gist options
  • Save devster/8de42197c44f3fac6e9669bd8e89bd0a to your computer and use it in GitHub Desktop.
Save devster/8de42197c44f3fac6e9669bd8e89bd0a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable"
apt-get update
apt-get install -y docker-ce
curl -L https://github.com/docker/compose/releases/download/1.15.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
groupadd docker
gpasswd -a $(getent passwd "1000" | cut -d: -f1) docker
newgrp docker
@devster
Copy link
Author

devster commented Aug 30, 2017

curl -sL https://gist.githubusercontent.com/devster/8de42197c44f3fac6e9669bd8e89bd0a/raw/bf4a5e0fbe42792b2263006eacec693a4635c639/ubuntu_install_docker.sh | sudo bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment