Last active
April 10, 2019 18:37
-
-
Save gadenbuie/4f1609ffb8e1f4f2ecdab2e4ebc0da9d to your computer and use it in GitHub Desktop.
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 | |
# https://docs.docker.com/install/linux/docker-ce/debian/ | |
# Get certificates | |
echo "Installing certificates..." | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
sudo add-apt-repository -y \ | |
"deb [arch=amd64] https://download.docker.com/linux/debian \ | |
$(lsb_release -cs) \ | |
stable" | |
# Get docker | |
echo "Installing docker..." | |
sudo apt-get update | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io | |
sudo groupadd docker | |
echo "Docker setup complete!" | |
echo "Run: sudo usermod -aG docker $USER" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment