Skip to content

Instantly share code, notes, and snippets.

@cmattoon
Last active December 6, 2017 21:13
Show Gist options
  • Save cmattoon/2e0cb5368f2144d64a733fb4ae0ab892 to your computer and use it in GitHub Desktop.
Save cmattoon/2e0cb5368f2144d64a733fb4ae0ab892 to your computer and use it in GitHub Desktop.
#!/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