Failed to create task for container: ... device or resource busy

Hello,

After a while running my containers just fine it seems like I can’t restart a container anymore. After removing a bunch I can add again. So looks like some kind of cgroup limit.

Error response from daemon: failed to create task for container: failed to create shim 
task: OCI runtime create failed: runc create failed: unable to start container process: 
unable to apply cgroup configuration: mkdir /sys/fs/cgroup/docker/
431b39d05bc18f644bf4d61dab0d12997e1a45d2a209e9edd0604edb0b6047a2: 
device or resource busy

Any ideas how I can fix this?

Versions:

  • Engine and client: 28.0.4 (API 1.48)
  • Gentoo Linux amd64
  • containerd: v2.0.5
  • runc: 1.2.6
  • docker-init: 0.19.0

Thanks,
Milo

Not the same, but could be related Cgroup error on container creation

But I also noticed you are using containerd v2.0.5 whle containerd is still v1.7.x when installed from the official repositories. I have no idea if it has anything to do with containerd, but Gentoo is not officially supported by Docker so I assume Gentoo has its own Docker package.

Regrdless of the OS, unfortunately I don’t know how creating /sys/fs/cgroup/docker can be lead to that error message. The folder doesn’t exist on my machine (Ubuntu Noble) using CgroupV2.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.