Last active
December 6, 2017 21:13
-
-
Save cmattoon/2e0cb5368f2144d64a733fb4ae0ab892 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
if [ $EUID != 0 ]; then | |
echo "You must be root" | |
exit 1; | |
fi | |
# Installs Docker on Ubuntu 14.04 | |
apt-get update && apt-get -y install \ | |
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 $(lsb_release -cs) stable" | |
apt-get update | |
apt-get install -y docker-ce | |
usermod -a -G docker $(whoami) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment