r/ProgrammerHumor • • Sep 05 '26

Meme memorySafeDocker

Post image
4.2k Upvotes

278 comments sorted by

View all comments

Show parent comment

11

u/elreniel2020 Sep 05 '26

Doesn't docker use WSL2 on Windows?

9

u/ShadF0x Sep 05 '26

It does, but it still somehow sucks more than just running something like Debian inside a WSL2 instance directly and launching Docker Engine there.

1

u/rastaman1994 Sep 05 '26

It's been a couple years, but by default WSL2 can take all available memory. Depending on what you're running in there, it will take all memory.

1

u/ShadF0x Sep 05 '26

My system has 128GB RAM installed and by default an OS under WSL detects "only" 64GB. A colleague told me that it wouldn't go beyond that on its own and if I needed more, I'd have to tweak the configs. Never tried to see what would happen upon memory exhaustion, though.

1

u/Ihalpd Sep 05 '26 edited Sep 05 '26

To do what, you think?
What do you think the "L" in WSL2 stands for?

0

u/elreniel2020 Sep 05 '26

Linux, still should be much less overhead instead of using hyper-v as they did before.

3

u/_PM_ME_PANGOLINS_ Sep 05 '26

WSL2 uses Hyper-V.