I learned this a few months ago too.
It's such a weird, stupid system. But everyone seems to think this is pretty normal.
I think the firewall is my business, and nothing else should automatically open ports in it. Especially not docker.
I think the firewall is my business, and nothing else should automatically open ports in it. Especially not docker.