From 7daf2db62a69cb6b341addf94d5da82759d7b6c2 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 31 Aug 2018 12:50:05 +0200 Subject: [PATCH] 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 --- contrib/init/systemd/docker.service | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/init/systemd/docker.service b/contrib/init/systemd/docker.service index 0c414c275b..5683409328 100644 --- a/contrib/init/systemd/docker.service +++ b/contrib/init/systemd/docker.service @@ -23,5 +23,9 @@ LimitNOFILE=infinity LimitNPROC=infinity LimitCORE=infinity +# Comment TasksMax if your systemd version does not supports it. +# Only systemd 226 and above support this option. +TasksMax=infinity + [Install] WantedBy=multi-user.target