-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
The newest runc version uses the rdma cgroup controller which isn't implemented in Sysbox 0.5.0
Inside of a sysbox container running docker and affected runc version:
$ docker run -it --rm hello-world
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: mkdir /sys/fs/cgroup/rdma/docker: permission denied: unknown.
$ runc --version
runc version 1.1.1
commit: v1.1.1-0-g52de29d
spec: 1.0.2-dev
go: go1.17.9
libseccomp: 2.5.1
$ sudo mkdir /sys/fs/cgroup/rdma/test
mkdir: cannot create directory '/sys/fs/cgroup/rdma/test': Permission denied
$ sudo mkdir /sys/fs/cgroup/cpu,cpuacct/test
$ ls -alh /sys/fs/cgroup
total 0
dr-xr-xr-x 14 root root 360 May 6 21:17 .
drwxr-xr-x 9 nobody nogroup 0 May 6 21:17 ..
drwxr-xr-x 3 root root 0 May 6 21:21 blkio
lrwxrwxrwx 1 root root 11 May 6 21:17 cpu -> cpu,cpuacct
drwxr-xr-x 4 root root 0 May 6 21:23 cpu,cpuacct
lrwxrwxrwx 1 root root 11 May 6 21:17 cpuacct -> cpu,cpuacct
drwxr-xr-x 3 root root 0 May 6 21:21 cpuset
drwxr-xr-x 3 root root 0 May 6 21:21 devices
drwxr-xr-x 3 root root 0 May 6 21:21 freezer
drwxr-xr-x 3 root root 0 May 6 21:21 hugetlb
drwxr-xr-x 3 root root 0 May 6 21:21 memory
lrwxrwxrwx 1 root root 16 May 6 21:17 net_cls -> net_cls,net_prio
drwxr-xr-x 3 root root 0 May 6 21:21 net_cls,net_prio
lrwxrwxrwx 1 root root 16 May 6 21:17 net_prio -> net_cls,net_prio
drwxr-xr-x 3 root root 0 May 6 21:21 perf_event
drwxr-xr-x 3 root root 0 May 6 21:21 pids
dr-xr-xr-x 2 nobody nogroup 0 May 6 18:39 rdma
drwxr-xr-x 2 root root 0 May 6 21:17 systemdNotably, the rdma cgroup dir is owned by nobody:nogroup. Changing the permissions of /sys/fs/cgroup/rdma on the host to 777 allows containers to start correctly but is not an ideal solution.
lanycrost and achimcc
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request