Skip to content

Instantly share code, notes, and snippets.

@SIMULATAN
Created February 28, 2022 12:03
Show Gist options
  • Save SIMULATAN/ee876b72f65d725ef528b6fb205eda83 to your computer and use it in GitHub Desktop.
Save SIMULATAN/ee876b72f65d725ef528b6fb205eda83 to your computer and use it in GitHub Desktop.
A simple script that just performs the official debian installation commands from the docker website - START AS ROOT!
apt-get remove docker docker-engine docker.io containerd runc -y
apt-get update -y
apt-get install -y \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get install docker-ce docker-ce-cli containerd.io -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment