News for hackers. Stuff that matters.
Re:Docker Desktop no longer free for large companies by dijit on Tuesday August 31, 2021 @03:49PM (#28372658)
That’s not an issue though. That’s just how virtual machines work. You’re carving out a chunk of your system for the docker Linux VM that runs your containers.

You can open up the docker app and configure a smaller amount of ram if it impacts your host OS

Re:Docker Desktop no longer free for large companies by matsemann on Tuesday August 31, 2021 @03:55PM (#28372731)
No, that's not how it works with WSL2 as the backend. You then cannot configure a smaller amount of RAM in the docker app, it's greyed out. One can limit the RAM that WSL has, but that's not really helpful when docker steals all of it. (And WSL2 supports dynamic allocation of memory anyways, so it's supposed to return unused memory to the host)

So you are wrong. For those of us affected by the bug, it's a big issue.

Re:Docker Desktop no longer free for large companies by onlywicked on Tuesday August 31, 2021 @04:52PM (#28373504)
You can configure the max memory in wsl 2 with .wslconfig file.
Re:Docker Desktop no longer free for large companies by matsemann on Tuesday August 31, 2021 @05:21PM (#28373847)
yes, but docker will eat whatever I give to it, leaving nothing for the actual containers or other stuff in wsl
Re:Docker Desktop no longer free for large companies by naikrovek on Tuesday August 31, 2021 @04:47PM (#28373435)
Linux considers unused RAM to be wasted RAM. WSL 2 addresses this with a Linux kernel change that right now is insiders only. I expect it to land with Windows 11.
Re:Docker Desktop no longer free for large companies by sixothree on Tuesday August 31, 2021 @05:00PM (#28373609)
That's not how virtual machines work on Windows. Even Linux virtual machines use dynamic memory. You assign a minimum, maximum, and a startup value. When the machine needs more RAM, Windows give it to it. When it releases it, it's available for other purposes.