Dockerfile source for Falco docker image.
This source repo was originally copied from: https://github.com/falcosecurity/falco/tree/master/docker/falco
This is not an official Google product.
This image contains an installation of Falco
For more information, see the Official Image Marketplace Page.
Configure gcloud as a Docker credential helper:
gcloud auth configure-docker
docker -- pull marketplace.gcr.io/google/falco
Dockerfile for this image can be found here.
To run Falco in a container using Docker use the following commands:
-
If you want to use Falco with the Kernel module driver:
docker run --rm -i -t \ --privileged \ -v /var/run/docker.sock:/host/var/run/docker.sock \ -v /dev:/host/dev \ -v /proc:/host/proc:ro \ -v /boot:/host/boot:ro \ -v /lib/modules:/host/lib/modules:ro \ -v /usr:/host/usr:ro \ -v /etc:/host/etc:ro \ marketplace.gcr.io/google/falco
-
Alternatively, you can use the eBPF probe driver:
docker run --rm -i -t \ --privileged \ -e FALCO_BPF_PROBE="" \ -v /var/run/docker.sock:/host/var/run/docker.sock \ -v /proc:/host/proc:ro \ -v /boot:/host/boot:ro \ -v /lib/modules:/host/lib/modules:ro \ -v /usr:/host/usr:ro \ -v /etc:/host/etc:ro \ marketplace.gcr.io/google/falco
NOTE: Depending on your Linux distribution, you may need to install the Linux Kernel headers package for your kernel version.
Debian GNU/Linux 11 (bullseye):
sudo apt install linux-headers-$(uname -r)
For more information on running Falco within Docker, see the official Falco documentation - Run within Docker.