浏览代码

Merge pull request #5705 from mgugino-upstream-stage/docker-partof-iptables

Add PartOf to docker systemd service unit.
Scott Dodson 7 年之前
父节点
当前提交
4c15d9c272
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      roles/docker/templates/custom.conf.j2

+ 6 - 0
roles/docker/templates/custom.conf.j2

@@ -3,3 +3,9 @@
 [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