dnschneid / crouton

Chromium OS Universal Chroot Environment
https://goo.gl/fd3zc?si=1
BSD 3-Clause "New" or "Revised" License
8.57k stars 1.24k forks source link

/sys/fs/cgroup/cpuset/docker/cpuset.cpus: no such file or directory: unknown #4978

Open aakash-v-virani opened 1 year ago

aakash-v-virani commented 1 year ago

Using crouton, I am trying to run docker container inside chroot in Chrome OS and docker run command fails with below error

docker: Error response from daemon: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: openat2 /sys/fs/cgroup/cpuset/docker/cpuset.cpus: no such file or directory: unknown.

Facing exactly same issue as https://github.com/docker/for-linux/issues/689

Any help would be appreciated :)

hattmall1 commented 1 year ago

There is a file called cpus that you can copy from /sys/fs/group/cpuset and rename as needed. Most likely though the /docker directory doesn't exist because /sys is read only.

You can copy everything from /sys/fs/cgroup to a new directory under your home directory and then use mount -o bind to mount the new directory at that location and have it be writable so you can make the missing files and folders under there