Skip to content

Instantly share code, notes, and snippets.

@0xbharath
Created November 3, 2023 09:18
Show Gist options
  • Save 0xbharath/773620acafcd288f7ea648eae36840c2 to your computer and use it in GitHub Desktop.
Save 0xbharath/773620acafcd288f7ea648eae36840c2 to your computer and use it in GitHub Desktop.
docker-setup-22.04.sh
#!/bin/bash
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
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
sudo apt install docker-ce
sudo usermod -aG docker ${USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment