Running Tripwire inside docker to scan a host system
You should provide an environment variable called HOST_HOSTNAME
when running
this image.
You must provide an environment variable TW_CONFIG_DIRECTORY indicating where site.key, local.key twcfg and twpol can be found.
You want to mount the host container under /host
, which is where tripwire will
scan for changes.
docker run -v /host:/ cfeckardt/tripwire tripwire
docker exec -it tripwire bash
twadmin --generate-keys -S /host/etc/tripwire/site.key
twadmin --generate-keys -L /host/etc/tripwire/local.key
twadmin --create-cfgfile -S /host/etc/tripwire/site.key /etc/tripwire/twcfg.txt
twadmin --create-polfile -S /host/etc/tripwire/twpol.txt
tripwire --init