Created
February 9, 2017 17:19
-
-
Save brianz/96416c3fff8c1aa2541e0c1d1f824b83 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 | |
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