Last active
June 28, 2018 08:36
-
-
Save devster/8de42197c44f3fac6e9669bd8e89bd0a to your computer and use it in GitHub Desktop.
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -sL https://gist.githubusercontent.com/devster/8de42197c44f3fac6e9669bd8e89bd0a/raw/bf4a5e0fbe42792b2263006eacec693a4635c639/ubuntu_install_docker.sh | sudo bash