From: Xiangyu Chen <[email protected]>

Add CONFIG_CGROUP_BPF to ensure docker can be started under cgroup v2,
otherwise it would report the following error:

      Error: for ... error setting cgroup config for procHooks process:
      bpf_prog_query(BPF_CGROUP_DEVICE) failed: invalid argument: unknown

Cgroup v2 device controller has no interface files and is implemented on top
of cgroup BPF. To control access to device files, a user may create bpf programs
of type BPF_PROG_TYPE_CGROUP_DEVICE and attach them to cgroups with
BPF_CGROUP_DEVICE flag.

Signed-off-by: Xiangyu Chen <[email protected]>
---
 cfg/docker.cfg | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cfg/docker.cfg b/cfg/docker.cfg
index eeeaa242..4d8d7e04 100644
--- a/cfg/docker.cfg
+++ b/cfg/docker.cfg
@@ -11,3 +11,5 @@ CONFIG_IP_NF_TARGET_MASQUERADE=m
 CONFIG_NETFILTER_XT_MATCH_IPVS=m
 
 CONFIG_OVERLAY_FS=y
+
+CONFIG_CGROUP_BPF=y
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13652): 
https://lists.yoctoproject.org/g/linux-yocto/message/13652
Mute This Topic: https://lists.yoctoproject.org/mt/104800927/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to