r/programminghumor • • Mar 21 '26

I hate python

Post image
5.0k Upvotes

385 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Mar 21 '26

[deleted]

42

u/0bel1sk Mar 21 '26

docker does ok

2

u/ze_baco Mar 21 '26

Using docker for this is killing a fly with a cannon ball. Just use pip or conda and everything is nice and isolated.

4

u/Meduini Mar 22 '26

Docker is not a cannon ball? a normal Linux process started with special kernel settings (namespaces + cgroups + mounts). The runtime that glued them together is very small. For the cost and unification it’s worth to use.

3

u/ze_baco Mar 22 '26

You can emulate an entire effing system or just save your packages in a .venv file. Docker is a lot more than this simplification you described and is absolutely a cannon ball just to run some python.

2

u/IVNPVLV Mar 26 '26

Docker is NOT a VM. You mentioned in later comments that it runs on Windows and yes, Docker machine itself is a VM hypervisor, but absolutely nobody sane runs production Docker systems on Windows.

Docker is literally just a fancy chroot jail, which is essentially just a remapped subset of filesystem and userspace. Try it out yourself on any BSD/linux box. Of course with further implementations and abstractions, stuff has gotten heavier, but at its core a container is just the system binaries and a jail.

1

u/ze_baco Mar 26 '26

I didn't say it is a VM, I said it emulates. Anyway this topic has already been widely discussed in this thread.

2

u/IVNPVLV Mar 26 '26

It is not an emulator either, and emulator would imply a VM, hence my statement

1

u/ze_baco Mar 26 '26

I guess I have the wrong idea of emulation

→ More replies (0)

3

u/Meduini Mar 22 '26

Look, I can downvote too.

Please will you educate me what more is docker?

What exactly is “emulating”?

→ More replies (27)