View previous topic :: View next topic |
Author |
Message |
allistarM Tux's lil' helper

Joined: 22 Jul 2004 Posts: 141
|
Posted: Fri Jan 19, 2024 11:21 pm Post subject: [SOLVED]How do I enable CONFIG_CGROUP_BPF when using OpenRC? |
|
|
Hi all,
My docker environment stopped working and the error when running "docker compose up -d" is:
Code: | 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: error during container init: error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed: function not implemented: unknown |
It seems I need to enable the CONFIG_CGROUP_BPF kernel config option, but this is only available if you're using Systemd. I'm using OpenRC. Here's the details for that config option:
Code: | Symbol: CGROUP_BPF [=n]
│ Type : bool
│ Defined at init/Kconfig:1157
│ Prompt: Support for eBPF programs attached to cgroups
│ Depends on: CGROUPS [=y] && BPF_SYSCALL [=n]
│ Location:
│ -> General setup
│ (1) -> Control Group support (CGROUPS [=y])
│ -> Support for eBPF programs attached to cgroups (CGROUP_BPF [=n])
│ Selects: SOCK_CGROUP_DATA [=y]
│ Selected by [n]:
│ - GENTOO_LINUX_INIT_SYSTEMD [=n] && GENTOO_LINUX [=y] && GENTOO_LINUX_UDEV [=y] |
How do I enable this option when I'm using OpenRC? If I can't, then how do I run docker on OpenRC?
Last edited by allistarM on Sat Jan 20, 2024 12:57 am; edited 1 time in total |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5595 Location: Bavaria
|
Posted: Fri Jan 19, 2024 11:37 pm Post subject: |
|
|
This has nothing to do with systemd. Look at the line:
Quote: | Depends on: CGROUPS [=y] && BPF_SYSCALL [=n] |
You have CGROUPS enabled. Good. But your are missing BPF_SYSCALL.
Enable it:
Code: | General setup --->
BPF subsystem --->
[*] Enable bpf() system call |
Now you should be able to enable:
Code: | General setup --->
-*- Control Group support --->
[*] Support for eBPF programs attached to cgroups |
_________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
 |
allistarM Tux's lil' helper

Joined: 22 Jul 2004 Posts: 141
|
Posted: Sat Jan 20, 2024 12:57 am Post subject: |
|
|
Thank you very much! Your post is appreciated. I should read what the kernel config says more closely. I was worried I'd have to convert to systemd which would be an annoyance.
I now have the kernel option enabled and my docker containers are working again.
Thanks again! |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5595 Location: Bavaria
|
|
Back to top |
|
 |
ricardo82 n00b


Joined: 10 Jun 2023 Posts: 3
|
Posted: Sat Mar 15, 2025 3:04 pm Post subject: Thx |
|
|
pietinger wrote: | This has nothing to do with systemd. Look at the line:
Quote: | Depends on: CGROUPS [=y] && BPF_SYSCALL [=n] |
You have CGROUPS enabled. Good. But your are missing BPF_SYSCALL.
Enable it:
Code: | General setup --->
BPF subsystem --->
[*] Enable bpf() system call |
Now you should be able to enable:
Code: | General setup --->
-*- Control Group support --->
[*] Support for eBPF programs attached to cgroups |
|
-> solved it for me, _________________ Ricardo is my name.
I am using gentoo since 2016. |
|
Back to top |
|
 |
|