Skip to content

Instantly share code, notes, and snippets.

@antoniopicone
Last active May 20, 2022 04:18
Show Gist options
  • Save antoniopicone/cd3425a7ab027a4912402098cdd380d0 to your computer and use it in GitHub Desktop.
Save antoniopicone/cd3425a7ab027a4912402098cdd380d0 to your computer and use it in GitHub Desktop.
Install Docker and Tailscale on Ubuntu
# install docker
sudo apt remove docker docker-engine docker.io containerd runc
sudo apt update && sudo apt install -y 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=$(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 -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo usermod -aG docker $USER
# install tailscale VPN
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt update && sudo apt install -y tailscale
sudo tailscale up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment