Skip to content

Instantly share code, notes, and snippets.

@kphrx
Last active August 8, 2023 15:20
Show Gist options
  • Save kphrx/ae6f2dfd0e12ba70a8f6c9d338272ba7 to your computer and use it in GitHub Desktop.
Save kphrx/ae6f2dfd0e12ba70a8f6c9d338272ba7 to your computer and use it in GitHub Desktop.
echo 'APT::Install-Recommends "false";
APT::Install-Suggests "false";' | sudo tee /etc/apt/apt.conf.d/00install-recommends > /dev/null
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-get update
sudo apt-get install -y docker-ce nftables
sudo update-alternatives --set iptables $(which iptables-nft)
sudo update-alternatives --set ip6tables $(which ip6tables-nft)
sudo usermod -aG docker $(whoami)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment