3 ms·
Well nothing prevents you from dynamically linking only glibc and statically linking everything else, without Docker at all. The fact that people distribute th
by palata 3y ago
Well nothing prevents you from dynamically linking only glibc and statically linking everything else, without Docker at all.
The fact that people distribute their app with a full rootfs in a Docker containers says more about the fact that they don't know how to link stuff properly, IMHO.
- IshKebab 3y agoIt's not about static vs dynamic linking at all. It's about bundling dependencies or not. And yes, you totally can do it. Most Linux software just doesn't bother because - while you can do it, in a lot of languages (C, Python, etc.) it's quite a pain to do. Especially if you have lots of dependencies. It's much easier to bundle dependencies in languages that statically link by default (Go, Rust) because of course statically linking implicitly bundles them.
- palata 3y ago> Dynamic Library hell is why Docker exists. > It's much easier to bundle dependencies in languages that statically link by default > It's not about static vs dynamic linking at all. Sorry I'm confused :/. What did I say that you disagree with?