Skip to content

Instantly share code, notes, and snippets.

@amircloner
Last active June 9, 2022 20:12
Show Gist options
  • Save amircloner/4305b461df40616a1c4c432b3619af82 to your computer and use it in GitHub Desktop.
Save amircloner/4305b461df40616a1c4c432b3619af82 to your computer and use it in GitHub Desktop.
# wget https://gist.github.com/amircloner/4305b461df40616a1c4c432b3619af82/raw -O docker-install.sh
# chmod +x docker-install.sh
# ./docker-install.sh
#curl -sSL https://gist.github.com/amircloner/4305b461df40616a1c4c432b3619af82/raw | bash
apt-get -y update
sudo apt-get -y remove docker docker-engine docker.io containerd runc
sudo apt-get -y update
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
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 -y update
sudo apt-get -y install docker-ce docker-ce-cli containerd.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment