Skip to content

Instantly share code, notes, and snippets.

@pierreneter
Last active July 8, 2022 05:19
Show Gist options
  • Save pierreneter/53f1ec32ef5d20e5b4177b74edeb6af3 to your computer and use it in GitHub Desktop.
Save pierreneter/53f1ec32ef5d20e5b4177b74edeb6af3 to your computer and use it in GitHub Desktop.
Fast curl to run install docker snippet
#!/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
@pierreneter
Copy link
Author

pierreneter commented Sep 27, 2020

curl -sSL https://gist.githubusercontent.com/pierreneter/53f1ec32ef5d20e5b4177b74edeb6af3/raw/4240d68c9ec8bf524d7c8d3e9c8be47970c9504f/docker | bash -s stable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment