hardkernel / linux

Linux kernel source tree
Other
426 stars 406 forks source link

Docker doesn't work on N2plus with latest do-release-upgrade #433

Open WebDesignerlol opened 1 year ago

WebDesignerlol commented 1 year ago

Docker containers all fail now

Given the error: docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed: invalid argument: unknown. ERRO[0000] error waiting for container: context canceled

I have attempted adding setenv bootargs "${bootargs} systemd.unified_cgroup_hierarchy=0" to /media/boot/boot.ini this hasn't resulted in success.

Upon further checking, i ran a script to determine what Docker needs and have the following results:

Generally Necessary:

kolyshkin commented 1 year ago

You are using kernel 4.9 which does not have adequate cgroup v2 support. The solution here (that I see you've tried that, to no avail -- looks like you have not succeeded in adding the kernel boot parameter) is to switch to cgroup v1.

See also:

In general, this is not a bug (or perhaps a bug in systemd which should not enable cgroup v2 on such old kernels).

tobetter commented 1 year ago

Consider to use community driven OS image with 5.x kernel. https://docs.linuxfactory.or.kr/install/odroidn2/image.html

briansaycocie commented 1 year ago

Consider to use community driven OS image with 5.x kernel. https://docs.linuxfactory.or.kr/install/odroidn2/image.html

This worked for me. Thanks!