bridge-nf-call-iptables and bridge-nf-call-ip6tables disabled on WSL2

Viewed 2761

Running docker info in WSL2 (both on ArchWSL and Ubuntu 20.04) I get the following warnings:

WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

Both properties appears to be enabled at sysctl level:

$ sysctl net.bridge.bridge-nf-call-iptables
net.bridge.bridge-nf-call-iptables = 1

$ sysctl net.bridge.bridge-nf-call-ip6tables
net.bridge.bridge-nf-call-ip6tables = 1

It is unclear from the messages whether that prevents any normal functioning of Docker or there is any action required from the user.

Does anyone know if there is anything to do to remove this warning?

Using Docker version 19.03.12, build 48a66213fe.

1 Answers

Please try the following commands

sudo echo "net.bridge.bridge-nf-call-iptables = 1" >> /etc/sysctl.conf
sudo echo "net.bridge.bridge-nf-call-ip6tables = 1" >> /etc/sysctl.conf
sudo modprobe br_netfilter
sudo sysctl -p /etc/sysctl.conf
Related