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

Programmer Humor

26332 readers
1428 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.

you are viewing a single comment's thread
view the rest of the comments
[–] qaz@lemmy.world 13 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

This is less of an issue with JS, but say you're developing this C++ application. It relies on several dynamically linked libraries. So to run it, you need to install all of these libraries and make sure the versions are compatible and don't cause weird issues that didn't happen with the versions on the dev's machine. These libraries aren't available in your distro's package manager (only as RPM) so you will have to clone them from git and install all of them manually. This quickly turns into hassle, and it's much easier to just prepare one image and ship it, knowing the entire enviroment is the same as when it was tested.

However, the primary reason I use it is because I want to isolate software from the host system. It prevents clutter and allows me to just put all the data in designated structured folders. It also isolates the services when they get infected with malware.

[–] peoplebeproblems@midwest.social -1 points 2 weeks ago (2 children)

Ok, see the sandboxing makes sense and for a language like C++ makes sense. But every other language I used it with is already portable to every OS I have access to, so it feels like that defeats the benefit of using a language that's portable.

[–] hitmyspot@aussie.zone 6 points 2 weeks ago

I think it's less about making it portable to different OS, and more different versions of the same os on different machines with different configuration and libraries and software versions.

[–] WhyJiffie@sh.itjust.works 3 points 2 weeks ago (1 children)

it does not solve portability across OS families. you can't run a windows based docker image on linux, and running a linux image on windows is solved by starting a linux VM.

[–] peoplebeproblems@midwest.social 2 points 2 weeks ago

Oh, fair. That's a good point.