Set cgroup pids.max default systemd value for docker daemon#21297
Set cgroup pids.max default systemd value for docker daemon#21297clnperez wants to merge 1 commit intomoby:masterfrom
Conversation
With the newer cgrouop PIDs limits in the 4.3 kernel, make sure
that the docker daemon isn't unreasonably limited.
Test failure with a basic docker command:
'docker run --rm -p 600:800'
See http://man7.org/linux/man-pages/man5/systemd.resource-control.5.html
TasksMax=N
"This controls the "pids.max" control group attribute."
"Implies 'TasksAccounting=true'"
Signed-off-by: Christy Perez <[email protected]>
|
Also, this should be changed for the other init-y things -- but I can't find the values and I know the systemd one. Apologies for being a bit lazy here. ;) |
|
/cc @jfrazelle, @cyphar. |
|
no we can't we already tried this it breaks older systed versions |
|
Aaah...duh. 😢 Thanks for the link, @jfrazelle. |
|
its super unfortunate :( On Thu, Mar 17, 2016 at 1:41 PM, christyp [email protected] wrote:
Jessie Frazelle |
- What I did
Updated the docker.service file for systemd
- How I did it
Typed
- How to verify it
cat /sys/fs/cgroup/pids/system.slice/docker.service/pids.max
Should be 1048576
- A picture of a cute animal (not mandatory but encouraged)
With the newer cgrouop PIDs limits in the 4.3 kernel, make sure
that the docker daemon isn't unreasonably limited.
Test failure with a basic docker command:
'docker run --rm -p 600:800 busybox /bin/sh'
See http://man7.org/linux/man-pages/man5/systemd.resource-control.5.html
Signed-off-by: Christy Perez [email protected]