Docker Community Forums

Share and learn in the Docker community.

Where are the iptables rules in the docker-ce rpm

I noticed after the yum install docker-ce, quite a few iptables rules are added. I am just wondering how those rules are added - Is it in the postinst scripts or somewhere else.

Thanks.

I did some research - for the docker-ce 19.03.1, the iptables are manipulated in the engine/vendor/github.com/docker/libnetwork/iptables/iptables.go