summaryrefslogtreecommitdiffstats
path: root/roles/container_runtime/templates/custom.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/container_runtime/templates/custom.conf.j2')
-rw-r--r--roles/container_runtime/templates/custom.conf.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/container_runtime/templates/custom.conf.j2 b/roles/container_runtime/templates/custom.conf.j2
new file mode 100644
index 000000000..713412473
--- /dev/null
+++ b/roles/container_runtime/templates/custom.conf.j2
@@ -0,0 +1,11 @@
+# {{ ansible_managed }}
+
+[Unit]
+Wants=iptables.service
+After=iptables.service
+
+# The following line is a work-around to ensure docker is restarted whenever
+# iptables is restarted. This ensures the proper iptables rules will be in
+# place for docker.
+# Note: This will also cause docker to be stopped if iptables is stopped.
+PartOf=iptables.service