Skip to content

Instantly share code, notes, and snippets.

@thijsvos
Last active August 28, 2021 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thijsvos/0b44ea65f70e457a64577ef9522c3553 to your computer and use it in GitHub Desktop.
Save thijsvos/0b44ea65f70e457a64577ef9522c3553 to your computer and use it in GitHub Desktop.
Docker_install_script
#!/bin/bash/
sudo apt-get remove docker docker.io containerd runc
sudo apt-get update -y
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
sudo DEBIAN_FRONTEND=noninteractive curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.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 update -y
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo DEBIAN_FRONTEND=noninteractive docker version
# Usage:
# wget -O - https://gist.githubusercontent.com/thijsvos/0b44ea65f70e457a64577ef9522c3553/raw/6b35577f677c2c4e1897c6ce3e31eeb738ff9161/install.sh | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment