fix(docker): fixed docker entrypoints for driver loading.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro
2024-04-15 18:34:25 +02:00
committed by poiana
parent ac61543276
commit fc7a451aed
3 changed files with 20 additions and 11 deletions

View File

@@ -69,8 +69,11 @@ while test $# -gt 0; do
print_usage
exit 1
else
if [ "$1" != "auto" ]; then
/usr/bin/falcoctl driver config --type $1
if [ "$opt" != "auto" ]; then
/usr/bin/falcoctl driver config --type $opt
else
# Needed because we need to configure Falco to start with correct driver
/usr/bin/falcoctl driver config --type modern_ebpf --type ebpf --type kmod
fi
has_driver="true"
fi