mirror of
https://github.com/containers/podman.git
synced 2026-10-29 21:29:54 -04:00
Rootless with the cgroupfs manager the pids controller is often not delegated, as on WSL machines. The default path already skips the pids limit there, but an explicit unlimited value (--pids-limit -1 or 0, the PidsLimit=0 every Docker client sends, or pids.limit 0 on the libpod API) still reached crun, which then failed with "controller `pids` is not available". A new cgroup has no pids limit anyway, so drop an unlimited limit in that case. Finite limits are left as they are. Fixes: https://github.com/podman-container-tools/podman/issues/29909 Signed-off-by: Victor Irzak <victor.irzak@zomp.com>