podman: "Error: invalid configuration, cannot specify resource limits without cgroups v2 and --cgroup-manager=systemd"
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
podman run -it --rm fedora:32
Describe the results you received:
Error: invalid configuration, cannot specify resource limits without cgroups v2 and --cgroup-manager=systemd
Describe the results you expected:
#
Additional information you deem important (e.g. issue happens only occasionally):
Happens all the time
Output of podman version:
Version: 1.9.1
RemoteAPI Version: 1
Go Version: go1.14.2
OS/Arch: linux/amd64
Output of podman info --debug:
debug:
compiler: gc
gitCommit: ""
goVersion: go1.14.2
podmanVersion: 1.9.1
host:
arch: amd64
buildahVersion: 1.14.8
cgroupVersion: v2
conmon:
package: conmon-2.0.15-1.fc32.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.0.15, commit: 33da5ef83bf2abc7965fc37980a49d02fdb71826'
cpus: 8
distribution:
distribution: fedora
version: "32"
eventLogger: file
hostname: tmp.scylladb.com
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
kernel: 5.6.7-300.fc32.x86_64
memFree: 5275238400
memTotal: 33541488640
ociRuntime:
name: crun
package: crun-0.13-2.fc32.x86_64
path: /usr/bin/crun
version: |-
crun version 0.13
commit: e79e4de4ac16da0ce48777afb72c6241de870525
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
os: linux
rootless: true
slirp4netns:
executable: /usr/bin/slirp4netns
package: slirp4netns-1.0.0-1.fc32.x86_64
version: |-
slirp4netns version 1.0.0
commit: a3be729152a33e692cd28b52f664defbf2e7810a
libslirp: 4.2.0
swapFree: 16869486592
swapTotal: 16869486592
uptime: 93h 3m 6.55s (Approximately 3.88 days)
registries:
search:
- registry.fedoraproject.org
- registry.access.redhat.com
- registry.centos.org
- docker.io
store:
configFile: /home/avi/.config/containers/storage.conf
containerStore:
number: 0
paused: 0
running: 0
stopped: 0
graphDriverName: overlay
graphOptions:
overlay.mount_program:
Executable: /usr/bin/fuse-overlayfs
Package: fuse-overlayfs-1.0.0-1.fc32.x86_64
Version: |-
fusermount3 version: 3.9.1
fuse-overlayfs: version 1.0.0
FUSE library version 3.9.1
using FUSE kernel interface version 7.31
graphRoot: /home/avi/.local/share/containers/storage
graphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "false"
Supports d_type: "true"
Using metacopy: "false"
imageStore:
number: 1
runRoot: /run/user/1000/containers
volumePath: /home/avi/.local/share/containers/storage/volumes
Package info (e.g. output of rpm -q podman or apt list podman):
podman-1.9.1-1.fc32.x86_64
Additional environment details (AWS, VirtualBox, physical, etc.):
Fully updated Fedora 32.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 7
- Comments: 92 (37 by maintainers)
For me it was an outdated
~/.config/containers/libpod.confconfig file that still had acgroup_manager = "cgroupfs"line. I don’t remember having created that config file, so I suspect it was automatically created by podman (or maybe by me following some tutorial). I removed that file and now running a container works without the--cgroup-manager=systemdoverride. This doesn’t sound exactly like OPs problem, but seems related enough to post here.