Docker Community Forums

Share and learn in the Docker community.

How to load iptable rules on container startup?

(Aholody) #1

So I created some rules with iptables and I want that the rules load on every container startup.
I know I can save them and load with iptables-restore but it only works if the container is --privileged but I want run containers without this option.
I tried it with iptables-persistent but the rules dont load on startup.