Docker: add kmod dependency to docker container
authorMauricio Vásquez <mauricio@kinvolk.io>
Tue, 2 Jun 2020 16:03:55 +0000 (11:03 -0500)
committeryonghong-song <ys114321@gmail.com>
Wed, 3 Jun 2020 15:46:16 +0000 (08:46 -0700)
commit5fed2a94da19501c3088161db0c412b5623050ca
tree91bdcb55867e5d771847b375ef85bad34048c6da
parentda0d82cc11d56d12a383f5c670281bfa61ca2ad7
Docker: add kmod dependency to docker container

modprobe and rmmod are used to load the kheaders module as a last option
when kernel headers are not found. The modprobe command is missing in the
docker image and scroipts are failing:

$ /usr/share/bcc/tools/execsnoop --mntnsmap /sys/fs/bpf/mnt_ns_set
sh: 1: modprobe: not found
Unable to find kernel headers. Try rebuilding kernel with CONFIG_IKHEADERS=m (module)
...

Signed-off-by: Mauricio Vásquez <mauricio@kinvolk.io>
Dockerfile.ubuntu