Skip to content

Instantly share code, notes, and snippets.

@brianz
Created February 9, 2017 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save brianz/96416c3fff8c1aa2541e0c1d1f824b83 to your computer and use it in GitHub Desktop.
Save brianz/96416c3fff8c1aa2541e0c1d1f824b83 to your computer and use it in GitHub Desktop.
#!/bin/bash
curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -
sudo apt-get install -y \
apt-transport-https \
software-properties-common \
ca-certificates
sudo add-apt-repository \
"deb https://apt.dockerproject.org/repo/ \
ubuntu-$(lsb_release -cs) \
main"
sudo apt-get update
sudo apt-get -y install docker-engine
# add current user to docker group so there is no need to use sudo when running docker
sudo usermod -aG docker $(whoami)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment