Skip to content

Instantly share code, notes, and snippets.

@lemin-ou
Created May 13, 2024 21:18
Show Gist options
  • Save lemin-ou/d6df1fc8a6cde3210d8774f666c11c26 to your computer and use it in GitHub Desktop.
Save lemin-ou/d6df1fc8a6cde3210d8774f666c11c26 to your computer and use it in GitHub Desktop.
Install Docker on ubuntu
# Add Docker's official GPG key:
sudo apt-get update -y
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo 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/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update -y
apt-cache madison docker-ce
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
sudo usermod -aG docker ${USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment