Created
June 21, 2020 23:54
-
-
Save vsilverman/d4bbd53e7b43a29a266e3059e88ec023 to your computer and use it in GitHub Desktop.
Install Docker CLI
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 | |
# Script to install docker cli | |
# on Debian/Ubuntu OS Platforms | |
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