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