Last active
July 8, 2022 05:19
-
-
Save pierreneter/53f1ec32ef5d20e5b4177b74edeb6af3 to your computer and use it in GitHub Desktop.
Fast curl to run install docker snippet
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/sh | |
# https://docs.docker.com/engine/install/ubuntu/ | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get update | |
sudo apt-get install \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
sudo mkdir -p /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y | |
sudo docker run hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -sSL https://gist.githubusercontent.com/pierreneter/53f1ec32ef5d20e5b4177b74edeb6af3/raw/4240d68c9ec8bf524d7c8d3e9c8be47970c9504f/docker | bash -s stable