According to the docker docs (emphasis mine):
On Linux, Docker manipulates iptables rules to provide network isolation. While this is an implementation detail (...) you should not modify the rules Docker inserts into your iptables policies ...
and
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 iptables to false will more than likely break container networking for the Docker engine.
The docs do make it rather clear that you shouldn't mess up with these options but they don't give any further information. So, the question is what exactly are the problems of disabling the iptables manipulation by docker? How will that affect running:
- standalone containers?
- docker-compose?
- docker-swarm mode?
- kubernetes?
I am assumming that container internet connectivity will be handled by setting up NAT rules for docker0
manually, as described e.g. here.