Skip to content

Instantly share code, notes, and snippets.

@MCardus
Created July 3, 2017 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MCardus/81a08b9abc6bedcb670df5d15d3f5c61 to your computer and use it in GitHub Desktop.
Save MCardus/81a08b9abc6bedcb670df5d15d3f5c61 to your computer and use it in GitHub Desktop.
Provision Docker in Ubuntu 16. It installs docker and configure current user to being able to acces docker without sudo
# Provision Docker Ubuntu 16
# It installs docker and configure current user to being able to acces docker without sudo
#Docker user
USER=$(whoami)
#Install Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
sudo usermod -aG docker ${USER}
id -nG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment