Windows 10 is consuming all free memory when docker desktop
is installed and hyper-v
is on. I don’t have any container running right now but memory usage is around 99%. I have 24GB of RAM on the system.
If I reboot the system, memory usage eventually gets to 99% after sometime (no containers are running).
If I disable Hyper-V then the memory usage always below 50%. But I need it enabled so I can use Docker desktop.
Is there anything that can be done to reduce the memory usage when docker desktop isn’t running? I’ve already tried .wslconfig
and wsl --shutdown
but still memory usages is 99%.
Task Manager:
The process tab doesn’t show anything that’s consuming memory.
RamMap:
2
Answers
Docker is the culprit (even if no containers are running). Quitting docker releases memory. After quitting docker memory usage went from 90% to 35%.
Although I'm not sure why docker is consuming so much memory without any containers running?
If you are running a database in one of your containers, and have dynamic memory enabled, it will tend to eat up as much memory as it can get.
You can limit WSL memory usage using
.wslconfig