Fedora32 start container error – OCI runtime create failed: This version of runc doesn’t work on cgroups V2: unknown

background: Fedora 32 version of the operating system, running the container times error

[root@Fedora4 ~]# docker run -d -p 1001:80 --name blog1 tutum/wordpress
97da5679108744a76fda3e171d49304cce059091ee321d6fd08c8d61a4300ee8
docker: Error response from daemon: OCI runtime create failed: this version of runc doesn't work on cgroups v2: unknown.

try again to start the container as well:

[root@Fedora4 ~]# docker start blog1
Error response from daemon: OCI runtime create failed: this version of runc doesn't work on cgroups v2: unknown

The

solution is configured as follows:

[root@Fedora4 ~]# grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
[root@Fedora4 ~]# reboot

after restart, the container can be started normally.

[root@Fedora4 ~]# docker start blog1
blog1
[root@Fedora4 ~]# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                            NAMES
97da56791087        tutum/wordpress     "/run.sh"           4 minutes ago       Up 11 seconds       3306/tcp, 0.0.0.0:1001->80/tcp   blog1

Reference documents:


https://jaranguda.com/fedora-docker-this-version-of-runc-doesnt-work-on-cgroups-v2/

Read More: