Docker bypasses UFW: why it happens and how to fix it for good
UFW was set to allow only SSH, and a container published on 8080 was still reachable from the Internet. If you run Docker on a VPS with UFW, some of your containers may be more exposed than you think, so I went through the whole thing on a clean server.