-
Notifications
You must be signed in to change notification settings - Fork 14
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
running libipvs inside the containers fail #4
Comments
My bad. Even modinfo fails. modinfo: can't open '/lib/modules/4.4.0-72-generic/modules.dep': No such file or directory |
Maybe it's safe to remove the |
Closing the bug. There is work arond for this issue. Mount /lib/modules from host to container. For e.g i added below lines to daemonset to fix this.
|
Hi, What might be the reason? |
Resolved it. Somehow, the base image I was using had only, -q and -r options for modprobe, not -a. So, I changed the base image. Now its working fine. |
I was trying to an application build with libipvs and observed that it will fail, even if you run container with "--privileged --cap-add=ALL".
"panic: Running modprobe ip_vs failed with message:
modprobe: can't change directory to '/lib/modules': No such file or directory
, error: exit status 1"Reason for failure is use of modprobe (https://github.com/mqliang/libipvs/blob/master/ipvs.go#L45). Perhaps "modinfo ip_vs" is safe check that works both on host and container.
The text was updated successfully, but these errors were encountered: