Replies: 5 comments 1 reply
-
I agree, that the pre-requisites / requirements are not documented as they could / should be. For example such links should contain more information about cgroups: Or maybe another "tutorial" link about OS configuration would help, which should contain the pre-requisites / requirements for rootless / rootful operating modes of podman with all the dis-/advantages [cgroups v1 vs. v2, sysctl settings, ...] in a nice table as a good overview. I also only stumpled over the cgroups topic by the small sentence somewhere in the long text of Systemd Units via Quadlet :
|
Beta Was this translation helpful? Give feedback.
-
Strange that you didn't get systemd (with cgroups v2) and weird that it uses VFS (not overlayfs)
The default settings for my Podman 5.2.0 on Debian 12 (built from source code) ended up as:
|
Beta Was this translation helpful? Give feedback.
-
Debian changed to cgroups v2 by default, in Debian 11 "bullseye": https://www.debian.org/releases/bullseye/amd64/release-notes/ch-whats-new.en.html#cgroupv2 For the older versions, it had to be enabled on the kernel cmdline:
|
Beta Was this translation helpful? Give feedback.
-
Found the solution, at least for WSL2! |
Beta Was this translation helpful? Give feedback.
-
I got this warning after upgrading from RHEL 9.4 to 9.5 in which Podman was upgraded from 4.9 to 5.2. I checked with After searching for a while, I found this command and it solved the issue!
For reference, it was on Oracle's doc site: https://docs.oracle.com/en/learn/ol-cgroup-v2/#enable-control-group-version-2 |
Beta Was this translation helpful? Give feedback.
-
Issue Description
When I run any podman command, it will warn about cgroups-v1 being deprecated in favor of cgroups-v2, but it does not provide any more info on how do I switch to cgroups-v2 (it does provide info about how to silent that warning):
I checked my
~/.config/containers/containers.conf
file, and every reference ofcgroup
I can find there are in comments, which seems to suggest that everything related to cgroups are being configured to use the default config to me? I also don't have~/.config/containers/storage.conf
so that's default as well.And it seems to me that my system supports both v1 and v2 of cgroups:
So if my system supports cgroups v2 and I did not explicitly configure podman to use cgroups v1 and cgroups v1 is deprecated in podman, it should auto pick v2 instead of warn me about that?
Steps to reproduce the issue
Steps to reproduce the issue
1.
2.
3.
Describe the results you received
Describe the results you received
Describe the results you expected
Describe the results you expected
podman info output
Beta Was this translation helpful? Give feedback.
All reactions