The test from a separate network namespace is the part that makes this convincing. A curl to 127.0.0.1 would have hidden the problem, and the point that the rule has to use the container port 80 rather than the host port 8088 is easy to get wrong. It is a useful reminder that a DENY IN rule in ufw status can look correct while the packet never passes through that chain.