fail2ban not working

Subject

Other - fail2ban

Description

I've just deployed docker-mailserver - Super nice!

I see that fail2ban is not working. I currently have set in docker-compose.yml

     cap_add:
       - NET_ADMIN
       - NET_RAW
       - SYS_PTRACE

however when I run docker exec mailserver iptables -L I get

iptables v1.8.2 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

I saw on #2169 that many are running fail2ban on their host instead. Are there any instructions for that?