Bug 1885433 - docker: oci runtime create failed / runc doesnt work on cgroups v2: unknown
Summary: docker: oci runtime create failed / runc doesnt work on cgroups v2: unknown
Keywords:
Status: CLOSED DUPLICATE of bug 1746355
Alias: None
Product: Fedora
Classification: Fedora
Component: moby-engine
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Olivier Lemasle
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-05 23:15 UTC by bugzilla
Modified: 2020-10-06 09:06 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-10-06 09:06:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.