Posts Docker errors on Fedora 31
Post
Cancel

Docker errors on Fedora 31

If you are facing theese issues with Docker on Fedora 31:

1
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:275: applying cgroup configuration for process caused "open /sys/fs/cgroup/cpuset/docker/cpuset.cpus: no such file or directory"": unknown.
1
2
dockerd[10141]: Error starting daemon: Devices cgroup isn’t mounted
systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE

You are not alone, this is the first release that comes with cgroup v2 enabled by default and Docker still don’t support cgroup v2.

To use Docker you have to rollback to cgroup v1, reboot the kernel with systemd.unified_cgroup_hierarchy=0:

1
2
# dnf install -y grubby
# sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"

Or use Podman which is a (sort of) drop-in replacement1 for Docker that already supports cgroup v2.


OLDER POST NEWER POST

Comments powered by Disqus.

Search Results