Run iptables inside Docker container

  docker, iptables

I am currently working on my Bachelor’s, I’m simulating some networks using a python script that uses mininet. The script is super short, I declare my hosts as docker containers, and set my preferences for them, linking them to a standard "base" image that I build in before with a shell script.
The problem is, the API was given to me and I cannot find anywhere "docker run" is used. I want to use iptables inside my docker containers(to configure NAT/tunneling) but I need to use "docker run" with a special parameter I found on the internet, the problem is I can’t find where to put that. Any ideas?

Source: Docker Questions