Manage Suricata volumes and permissions
mainThe container exposes several key volumes:
/var/log/suricata: The Suricata log directory./var/lib/suricata: Rules, Suricata-Update cache, and other runtime data./etc/suricata: The configuration directory.
To ensure bind-mounted files are owned by your host user instead of the container's internal user, set the PUID and PGID environment variables to match your host user's IDs.
Example:
docker run -e PUID=$(id -u) -e PGID=$(id -g) ...