Skip to content

Instantly share code, notes, and snippets.

@ealipio
Created June 2, 2020 04:13
Show Gist options
  • Save ealipio/564ee9cb2483f29c353331bf57196586 to your computer and use it in GitHub Desktop.
Save ealipio/564ee9cb2483f29c353331bf57196586 to your computer and use it in GitHub Desktop.
Docker in debian error
I get this error installing docker in debian WSL 2
The docker installer uses iptables for nat. Unfortunately Debian uses nftables. You can convert the entries over to nftables or just setup Debian to use the legacy iptables.
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
dockerd, should start fine after switching to iptables-legacy.
sudo service docker start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment