Docker publishes ports before your firewall rules are checked. Here's why your 'deny all' ufw rules don't actually protect published containers—and five ways to fix it.
https://dev.to/alessio99xx/how-do-you-stop-docker-from-quietly-bypassing-ufw-110i
