Set TasksMax in addition to LimitNPROC in systemd service files

systemd sets an additional limit on processes and threads that defaults to 512 when run under Linux >= 4.3.
See more information here: http://unix.stackexchange.com/a/255603/59955

Signed-off-by: Candid Dauth <cdauth@cdauth.eu>
Upstream-commit: 105778343a2e5d510fae1cbdb1b7ab6879e5a028
Component: engine
This commit is contained in:
Candid Dauth
2016-01-16 18:45:41 +01:00
parent a42acfafda
commit b8f7499a3b
2 changed files with 2 additions and 0 deletions
@@ -11,6 +11,7 @@ MountFlags=slave
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
TasksMax=1048576
TimeoutStartSec=0
[Install]
@@ -88,6 +88,7 @@ In this example, we'll assume that your `docker.service` file looks something li
ExecStart=/usr/bin/docker daemon -H fd://
LimitNOFILE=1048576
LimitNPROC=1048576
TasksMax=1048576
[Install]
Also=docker.socket