Created
July 3, 2017 08:43
-
-
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
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
# 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