Created
November 30, 2018 22:44
-
-
Save toddboyd/df2340021e7f6dce1ead2b8c9a8517d5 to your computer and use it in GitHub Desktop.
Shell script to install latest docker-ce
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
apt-get update | |
apt-get -y install apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey | |
apt-key add /tmp/dkey | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ | |
$(lsb_release -cs) stable" | |
apt-get update | |
apt-get -y install docker-ce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment