瀏覽代碼

systemd: don't limit tasks

Systemd sets a default of 512 tasks, which is far
too low to run many containers.

Note that TasksMax is only supported on systemd 226
and above.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 6 年之前
父節點
當前提交
7daf2db62a
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      contrib/init/systemd/docker.service

+ 4 - 0
contrib/init/systemd/docker.service

@@ -23,5 +23,9 @@ LimitNOFILE=infinity
 LimitNPROC=infinity
 LimitNPROC=infinity
 LimitCORE=infinity
 LimitCORE=infinity
 
 
+# Comment TasksMax if your systemd version does not supports it.
+# Only systemd 226 and above support this option.
+TasksMax=infinity
+
 [Install]
 [Install]
 WantedBy=multi-user.target
 WantedBy=multi-user.target