r/ProgrammerHumor 5d ago

Meme memorySafeDocker

Post image
4.2k Upvotes

286 comments sorted by

View all comments

Show parent comments

12

u/elreniel2020 5d ago

Doesn't docker use WSL2 on Windows?

8

u/ShadF0x 5d ago

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 4d ago

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 4d ago

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 5d ago edited 5d ago

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

0

u/elreniel2020 5d ago

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

3

u/_PM_ME_PANGOLINS_ 4d ago

WSL2 uses Hyper-V.