Last active
January 21, 2018 05:56
-
-
Save goddoe/40d65feb8e8591e6e94d74df420fa33d to your computer and use it in GitHub Desktop.
How to install docker
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
# reference : https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/ | |
# Remove old Docker | |
sudo apt-get remove docker docker-engine docker.io | |
# Add repository | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
# Install Docker | |
sudo apt-get update | |
sudo apt-get install docker-ce | |
# Add user to Docker group | |
sudo usermod -aG docker $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment