termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.15k stars 3.02k forks source link

[Bug]: cpuset.cpus: no such file or directory: unknown while using docker in chroot #20921

Closed aikooo7 closed 2 months ago

aikooo7 commented 2 months ago

Problem description

While trying to use docker in chroot I get the message:

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

The kernel is properly compile and I have root, and docker works almost well in termux

Maybe this patch could fix my issue but it is outdated to my kernel

What steps will reproduce the bug?

  1. Do everything until you get root.
  2. Compile kernel.
  3. Install linux deploy and configure it to use debian oldstable.
  4. Run a container as you would in a normal debian machine.

What is the expected behavior?

Container start.

System information

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=7054
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirror.accum.se/mirror/termux.dev/termux-main stable main
# root-repo (sources.list.d/root.list)
deb https://mirror.accum.se/mirror/termux.dev/termux-root root stable
Updatable packages:
containerd/root 1.6.21-3 aarch64 [upgradable from: 1.6.21-1]
libnl/stable 3.10.0 aarch64 [upgradable from: 3.9.0]
liborc/stable 0.4.39 aarch64 [upgradable from: 0.4.38]
termux-tools/stable 1.43.1 all [upgradable from: 1.42.4]
termux-tools version:
1.42.4
Android version:
14
Kernel build information:
Linux localhost 4.19.315-perf+ #2 SMP PREEMPT Thu Jul 18 22:46:57 WEST 2024 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
M2012K11AG
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
aikooo7 commented 2 months ago

Issue not related with termux, sorry for opening the issue.