-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 run can fail with bpf_prog_query(BPF_CGROUP_DEVICE) failed: invalid argument #3867
Comments
The docstring for // Requires the system to be running in cgroup2 unified-mode with kernel >= 4.15 . So, this configuration is not supported. Also, https://github.com/opencontainers/runc/blob/main/docs/cgroup-v2.md says: Kernel So, the only thing we could have done better here is make the error message less cryptic. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Thanks @kolyshkin! I'm going to go ahead and close this issue since it seems there is nothing actionable on our end. |
I'm on kernel 6.6.21 and still getting this error. Which kernel config flag do I need? |
In my case it was |
Description
docker run
fails with:On kernel 4.9
Strangely this is supposed to be on Ubuntu 22.04, I'll follow up with the user on why they are on such an old kernel on 22.04.
In any case it seems like the detection logic here is not quite right.
It is failing in this call
runc/libcontainer/cgroups/devices/ebpf_linux.go
Lines 161 to 164 in 2685116
At this system call:
runc/libcontainer/cgroups/devices/ebpf_linux.go
Lines 45 to 48 in 2685116
Which happens before
haveBpfProgReplace()
Steps to reproduce the issue
Likely this is due to an old kernel not supporting the bpf query while also configured for cgroup2.
This has been reported a few places and unfortunately just asked users to upgrade the kernel to fix the issue.
See:
Describe the results you received and expected
I believe this should hit the fallback code, but I'm not an expert in this area.
What version of runc are you using?
From the users
docker version
output:Host OS information
From user's
docker info
outputHost kernel information
From user's
docker info
outputThe text was updated successfully, but these errors were encountered: