


A FORWARD -i docker0 -o docker0 -j ACCEPT A FORWARD -i docker0 ! -o docker0 -j ACCEPT A FORWARD -o docker0 -m conntrack -ctstate RELATED,ESTABLISHED -j ACCEPT A OUTPUT ! -d 127.0.0.0/8 -m addrtype -dst-type LOCAL -j DOCKER A PREROUTING -m addrtype -dst-type LOCAL -j DOCKER iptables-docker-ports.backup # Generated by iptables-save v1.4.21 on Thu Apr 30 20:48:42 2015 iptables-docker-ports.backupĮdit and save this to. However, if you just want to restore those rules without restarting your service, i saved mine so you can inspect, and adjust it to work for you, then load using sudo iptables-restore. (on deb-based: sudo service docker restart)

The best way is to restart your docker service, then it'll re-add your docker rules to iptables.
