this post was submitted on 29 Aug 2025
549 points (99.1% liked)

Programmer Humor

26135 readers
1138 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Docker docs:

Docker routes container traffic in the nat table, which means that packets are diverted before it reaches the INPUT and OUTPUT chains that ufw uses. Packets are routed before the firewall rules can be applied, effectively ignoring your firewall configuration.

(page 3) 6 comments
sorted by: hot top controversial new old
[–] dangling_cat@piefed.blahaj.zone 37 points 1 week ago (3 children)

I DIDNT KNOW THAT! WOW, this puts “not to use network_mode: host” another level.

load more comments (3 replies)
[–] dohpaz42@lemmy.world 33 points 1 week ago (3 children)

It’s my understanding that docker uses a lot of fuckery and hackery to do what they do. And IME they don’t seem to care if it breaks things.

[–] marcos@lemmy.world 33 points 1 week ago

To be fair, the largest problem here is that it presents itself as the kind of isolation that would respect firewall rules, not that they don't respect them.

People wouldn't make the same mistake in NixOS, despite it doing exactly the same.

[–] LodeMike@lemmy.today 4 points 1 week ago

This is why I hate Docker.

load more comments (1 replies)
load more comments
view more: ‹ prev next ›