Apply firewall rules on OS startup – Docker

Modify the following lines in iptables config file:

sudo vi /etc/sysconfig/iptables-config
# Save current firewall rules on stop.
IPTABLES_SAVE_ON_STOP="yes"
# Save current firewall rules on restart.
IPTABLES_SAVE_ON_RESTART="yes"
# Save (and restore) rule and chain counter.
IPTABLES_SAVE_COUNTER="yes"

*** Tested on CentOS/RHEL 7.0***