diff --git a/docs/usage/advanced/podman.md b/docs/usage/advanced/podman.md index 8658896f..a1f43be9 100644 --- a/docs/usage/advanced/podman.md +++ b/docs/usage/advanced/podman.md @@ -48,6 +48,26 @@ export DOCKER_SOCK=$XDG_RUNTIME_DIR/podman/podman.sock k3d cluster create ``` +#### Using cgroup (v2) + +By default, a non-root user can only get memory controller and pids controller to be delegated. + +To run properly we need to enable CPU, CPUSET, and I/O delegation + +!!! note "Make sure you're running cgroup v2" + If `/sys/fs/cgroup/cgroup.controllers` is present on your system, you are using v2, otherwise you are using v1. + +```bash +mkdir -p /etc/systemd/system/user@.service.d +cat > /etc/systemd/system/user@.service.d/delegate.conf <