There is not a
/etc/default/docker file for the snap, but you can edit the daemon.json to include the
iptables key i.e.
however this will have other side effects and as such is not recommended by the upstream docker docs:
It is possible to set the
iptables key to
false in the Docker engine’s configuration file at
/etc/docker/daemon.json , but this option is not appropriate for most users. It is not possible to completely prevent Docker from creating
iptables rules, and creating them after-the-fact is extremely involved and beyond the scope of these instructions. Setting
false will more than likely break container networking for the Docker engine.