Skip to content

Instantly share code, notes, and snippets.

@nwunderly
Created August 5, 2021 01:43
Show Gist options
  • Save nwunderly/94a32ccbe508a4efc8dc072f3c0ed83e to your computer and use it in GitHub Desktop.
Save nwunderly/94a32ccbe508a4efc8dc072f3c0ed83e to your computer and use it in GitHub Desktop.
Docker installation script
Install Docker on a 64-bit Linux system.
AMD64/x86-64: run docker_install_amd64.sh
ARM64: run docker_install_arm64.sh
sudo apt update && sudo apt upgrade -y && sudo apt-get update && sudo apt-get 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 update && sudo apt-get install docker-ce docker-ce-cli containerd.io && sudo docker run hello-world
sudo apt update && sudo apt upgrade -y && sudo apt-get update && sudo apt-get 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=arm64 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 && sudo apt-get install docker-ce docker-ce-cli containerd.io && sudo docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment