Bug 1885433

Summary: docker: oci runtime create failed / runc doesnt work on cgroups v2: unknown
Product: [Fedora] Fedora Reporter: bugzilla
Component: moby-engineAssignee: Olivier Lemasle <o.lemasle>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 33CC: adimania, admiller, amurdaca, dwalsh, ichavero, jcajka, lsm5, nalin, o.lemasle, santiago, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-06 09:06:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description bugzilla 2020-10-05 23:15:48 UTC
Description of problem:
when i try to run docker build ., i get an error

Version-Release number of selected component (if applicable):
Docker version 19.03.13, build 4484c46


How reproducible:
always

Steps to Reproduce:
1. execute a build
2.
3.

Actual results:
[root@localhost fakecam]# docker build .
Sending build context to Docker daemon   21.9MB
Step 1/12 : FROM ubuntu:focal
focal: Pulling from library/ubuntu
d72e567cc804: Pull complete 
0f3630e5ff08: Pull complete 
b6a83d81d1f4: Pull complete 
Digest: sha256:bc2f7250f69267c9c6b66d7b6a81a54d3878bb85f1ebb5f951c896d13e6ba537
Status: Downloaded newer image for ubuntu:focal
 ---> 9140108b62dc
Step 2/12 : RUN apt-get update && apt-get install -y python3-pip wget libglib2.0-0 nvidia-cuda-toolkit
 ---> Running in 91d3ae531b58
OCI runtime create failed: this version of runc doesn't work on cgroups v2: unknown


Expected results:
no error

Additional info:

Comment 1 Lokesh Mandvekar 2020-10-06 00:17:59 UTC
There's no "docker" on fedora 33. This is probably a moby-engine bug.

Comment 2 bugzilla 2020-10-06 08:11:58 UTC
thanks, you are right: moby-engine-19.03.13-1.ce.git4484c46.fc33.x86_64

Comment 3 Olivier Lemasle 2020-10-06 09:06:39 UTC
Hi,

Sadly, moby-engine is not yet compatible with cgroups v2, which is used by default by Fedora since Fedora 31 (actually, the error message is printed by runc, which does not work yet with cgroups v2).

To revert to cgroups v1 and use moby-engine, you can:

- Run: sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
- Then reboot

Otherwise, you can explore using podman, but it does not replace docker/moby-engine in every scenario.

*** This bug has been marked as a duplicate of bug 1746355 ***