Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WebDesignerlol opened this issue Jan 27, 2023 · 3 comments
Open

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

WebDesignerlol opened this issue Jan 27, 2023 · 3 comments

Comments

@WebDesignerlol
Copy link

WebDesignerlol commented Jan 27, 2023

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:

  • cgroup hierarchy: cgroupv2
    Controllers:
    • cpu: missing
    • cpuset: missing
    • io: available
    • memory: available
    • pids: available
@kolyshkin
Copy link

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
Copy link
Collaborator

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

@briansaycocie
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants