Last active
March 4, 2018 09:14
-
-
Save szabo92/7905cb6669deb0979767cb7c5c531cdb to your computer and use it in GitHub Desktop.
Install Docker in Debian
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
# install the following packages | |
sudo apt install apt-transport-https ca-certificates curl gnupg2 sofware-properties-common | |
# $(. /etc/os-release; echo "$ID") | |
# outputs debian | |
# add Docker's GPG key | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
# verify fingerprint in website with last 8 digits 0EBFCD88 | |
apt-key fingerprint 0EBFCD88 | |
# set up repository | |
# $(. /etc/os-release; echo "$ID") | |
# outputs "debian" | |
# $(lsb_release -cs) | |
# outputs "stretch" for exemple | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" | |
sudo apt update | |
sudo apt install docker-ce | |
# alternatively, choose a specific version | |
# sudo apt-get install docker-ce=<VERSION_STRING> | |
# to prevent auto-start | |
sudo systemctl disable docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment