mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
An ioctl() call to get the "interface index" for a kernel module triggers the kernel to try to load the module, if the process is running with CAP_SYS_MODULE. This tends to be more reliable than "modprobe" for docker-in-docker. If the ioctl() method fails, fall back to trying "modprobe". Signed-off-by: Rob Murray <rob.murray@docker.com>