Browse code

Adds steps for safely restarting iptables

Mrunal Patel authored on 2015/06/02 01:54:41
Showing 1 changed files
... ...
@@ -25,6 +25,15 @@ System Environment
25 25
 
26 26
   Containers need to be able to resolve hostnames, so if you run a local DNS server on your host, you should update your /etc/resolv.conf to instead use a DNS server that will be reachable from within running containers.  Google's "8.8.8.8" server is a popular choice.
27 27
 
28
+1. Save iptables rules before restarting iptables and restore them afterwards. If iptables have to be restarted, then the iptables rules should be saved and restored, otherwise the docker inserted rules would get lost.
29
+
30
+
31
+        $ iptables-save > /path/to/iptables.bkp
32
+        $ systemctl restart iptables
33
+        $ iptables-restore < /path/to/iptables.bkp
34
+  
35
+
36
+
28 37
 Build Failures
29 38
 --------------
30 39