Open swagatbora90 opened 1 month ago
The com.docker.network.bridge.enable_icc=false
docker config will result in the following iptable rule in the host's forward chain (where 'docker0' is the bridge name):
-A FORWARD -i docker0 -o docker0 -j DROP
I'm not aware of a similar functionality in CNI's bridge plugin. Is it something the community would consider to add as a new feature? If so we will be happy to contribute a patch.
cc @squeed
Had a discussion about this issue during the last community meeting. Overall, no major concerns were raised regarding the proposed feature for the bridge plugin. The maintainers suggested that we move forward and open a PR with the proposed changes. I'll go ahead and work on that.
Thanks for the feedback!
Hi team,
I have a use-case where I need to disable intercontainer connectivity between containers attached to the same bridge network. With docker, I can pass
com.docker.network.bridge.enable_icc=false
option duringnetwork create
which disables inter container connectivity. So I can do something like:I am trying to find out if the bridge plugin provides a similar mechanism to disable the default behavior through config?