Finally, if your issue has not been addressed elsewhere, running:
- Settings Diagnose & Feedback Open Issues.
This forum is not an official product support or issue reporting channel.
This option does not existâŠ
Iâm running Docker Desktop on Windows 10 Pro on 2 separate machines. 1 machine is only running a single item, the Portainer Extension
. The other is running a number of containers.
I noticed when Docker Desktop is running for a time, usually more than a day, it starts to seriously start consuming RAM, to the point where it was maxing out my systemâs RAM & causing memory errors. While this system was only running Portainer to manage the Portainer on the other system.
Looking for support I was directed to a post about WSL2 being the problem & IT taking a bunch of RAM, & a solution to set a limit to itâs usage with a .wslconfig
file in C:\Users\#MYUSERNAME#\.wslconfig
My file is:
[ws12]
processors=1
memory=1GB
swapFile=F:\\TMP\\docker\\swap\\wsl-swap.vhdx
swap=16GB
pageReporting=true
But when I startup Docker Desktop the Vmmem
usage immediately goes to 1,800MB but usually stops around 2,100 or 2,300. Which is much more than the 1GB limit that I set. Even with the file settings & multiple restarts after Docker Desktop has been running for a few days it will say in Task Manager that itâs using 6GBs but Resource Monitor will show Vmmem using as much as 18GBs. If I close Docker Desktop from the Task Tray Icon the RAM will go down to nothing. Other WSL2 entities will respect the 1GB limit, but Docker Desktop does not.
My other machine, which has been running Docker Desktop for a year or so hasnât had such an extreme RAM problem, though I cannot say it had none as I did run into occasions where I couldnât identify what was using it, but it never got to that point. Now I am having the same problem, I have set the .wslconfig
allowing 5GBs of RAM & when closed I gain back as much as 12GBs of space, but it has yet to peg my RAM usage. It never had a very noticeable usage until after the update to Docker Desktop 4.11.1 (84025)