Docker in LXC in OpenWRT

I am trying to run Docker on a device with limited flash. Since Docker would not fit I instead installed LXC and then put a Debian container on a USB flash drive. Inside of Debian I installed Docker but it will not start. Here is the error I get:

failed to start daemon: Error initializing network controller: Error creating default "bridge" network: Failed to Setup IP tables: Unable to enable NAT rule:  (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE: Warning: Extension MASQUERADE revision 0 not supported, missing kernel module?

I have already installed all of the kernel modules listed as a dependency of the dockerd package on OpenWRT. Is there some other package I should install?

Solution: Install iptables-nft

Error says have to switch debian to iptables-nft

1 Like

Thanks that worked

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.