Created
March 8, 2017 16:32
-
-
Save fornarat/a2b33a9f83e00197d20717db896d871d 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
function installDocker { | |
sudo apt-get -y --no-install-recommends install curl apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add - | |
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 | |
sudo docker run hello-world | |
sudo usermod -aG docker $USER | |
# log out/in manually! | |
docker run hello-world | |
} | |
installDocker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment