

This actually is a really good idea.
Yes, for the reasons you mention. And very, very much no. My corporate hat immediately thinks about a crapload of stuff our network drives have which is under various NDAs, restrictions to store outside EU/ETA, restrictions to store even outside our country and so on. At least our accounts have mandatory MFA and other standard safety features, but cloud storage has a different threat model than our local hardware which also makes it’s own little headaches.
I don’t play on the contract/legal field on corporate at all, but I do know that some of those NDAs have numbers big enough to bring the whole circus down and other clauses which can even throw someone in jail if things really go wrong. I just hope I’m not the scapegoat at that point.
Docker spesifically creates rules for itself which are by default open to everyone. UFW (and underlying eftables/iptables) just does as it’s told by the system root (via docker). I can’t really blame the system when it does what it’s told to do and it’s been administrators job to manage that in a reasonable way since forever.
And (not related to linux or docker in any way) there’s still big commercial software which highly paid consultants install and the very first thing they do is to turn the firewall off…