Skip to content

Instantly share code, notes, and snippets.

Created October 14, 2021 01:38
What would you like to do?
apt-get remove -y docker docker-engine containerd runc
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \
curl -fsSL | 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] \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install -y docker-ce docker-ce-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment