Created
October 19, 2017 07:18
-
-
Save yuhr123/050266e08e970bf1cc8122fe6ce50b6c to your computer and use it in GitHub Desktop.
Install Docker CE on Debian Strach x86_64
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
#!/bin/bash | |
# install dependency packages | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common | |
# add gpg key | |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - | |
# add docker repo | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ | |
$(lsb_release -cs) \ | |
stable" | |
# install docker | |
sudo apt-get update && sudo apt-get install docker-ce -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment