Skip to content

Instantly share code, notes, and snippets.

@fornarat
Created March 8, 2017 16:32
Show Gist options
  • Save fornarat/a2b33a9f83e00197d20717db896d871d to your computer and use it in GitHub Desktop.
Save fornarat/a2b33a9f83e00197d20717db896d871d to your computer and use it in GitHub Desktop.
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