-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: invalid configuration, cannot specify resource limits without cgroups v2 and --cgroup-manager=systemd #5903
Comments
Ran into this yesterday and took a while to figure out it was 1.9 that broke. Reverting versions made it work again. |
@rhatdan PTAL - I suspect this is containers.conf related. |
It sounds like it also reproduces without |
runs if the This isn't the solution, just an observation. |
if this is the case then perhaps I should open a bug with podman-compose |
@rhatdan We may have swapped default cgroup manager for rootless from |
Ah, my libpod.conf had cgroupfs set for cgroup_manager. It was set that way on my laptop and a box I run some containers on. I don't ever remember setting that. I only noticed from here: https://github.com/containers/libpod/blob/master/docs/source/markdown/podman.1.md --cgroup-manager=manager CGroup manager to use for container cgroups. Supported values are cgroupfs or systemd. Default is systemd unless overridden in the libpod.conf file. |
switching ~/.config/containers/libpod.conf to systemd results in:
|
Could you just remove oci-systemd-hook and ~/.config/containers/libpod.conf Not sure oci-systemd-hook would work with rootless and it is not needed by podman. |
containers.conf replaces libpod.conf, we just use it for compatibility mode. |
Can someone provide a sample |
In my case, modifying |
Maybe related: I'm on kernel 5.6.5 with |
|
Updating cgroup_manager: Should I close the issue? |
Can someone try keeping cgroup_manager as cgroupfs but changing |
EDIT: I didn't add a log file location (oops) :P got the same error from
too be clear I set |
I can confirm this with Podman v1.9.0 on Fedora 31. Setting
Is the $ rpm -ql podman | grep ".conf"
/etc/cni/net.d/87-podman-bridge.conflist
/usr/lib/tmpfiles.d/podman.conf
/usr/share/containers/libpod.conf
/usr/share/man/man5/containers-mounts.conf.5.gz
/usr/share/man/man5/libpod.conf.5.gz |
We have not released it yet, It will be in Fedora 32 shipped by containers-common. We were supposed to be the same defaults. The problem was in that we had bugs in older versions of podman that forced "file" on events-logger, We are working to fix this in podman-1.9.1. But for now you can work around it by using containers.conf. |
I am seeing this too, even with --cgroups-manager=systemd. podman-1.9.1-1.fc32.x86_64 |
|
Can you open a fresh issue? This should have been resolved with v1.9.1 |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
Use podman-compose version 0.1.6dev (also tested against 0.1.7dev)
run podman-compose against attached YAML
$ podman-compose/podman_compose.py -t 1podfw -f docker-compose-podman.yml up -d
Downgrade podman to 1.6.2 and the up command is successful
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
YAML file:
The text was updated successfully, but these errors were encountered: