docker's PIDs limit (i.e. "docker run --pids-limit...") value lost after some systemd operation
Issue
- After executing some systemd operation, like enabling a service, the cgroup's PIDs limit (
pids.max) value for all containers running on the Host is lost.
# CTR=`docker run --pids-limit 111 --detach --rm busybox /bin/sleep 8h`
# cat /sys/fs/cgroup/pids/system.slice/docker-${CTR}.scope/pids.max
111
# systemctl show docker-$CTR.scope | grep TasksMax
TasksMax=18446744073709551615
# systemctl disable --now postfix
# systemctl enable --now postfix
# cat /sys/fs/cgroup/pids/system.slice/docker-${CTR}.scope/pids.max
max
Environment
- Red Hat Enterprise Linux 7.x
- docker-1.13.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
