'Docker containers eating up all the ram using windows 10
I have 7 docker containers running, which in total take around 3gb of ram, according to docker stats
Im running docker with hyper-v in windows , im not using WSL / WSL-2 because the problem that im about to describe becomes even worse.
The problem is that hyper-v is demanding around 6.5-7gb ram instead of 3gb of ram

Why? If my containers barely take 3gb. In result because of the high ram usage, im always hovering 15gb of total ram usage on windows 10, when I only have 16gb ram. If something weird happens , like changing branches in the container or whatever in a fast pace, the container eventually runs out of the assigned 8gb of memory and starts swapping with my ssd, which makes my pc crash.
With WSL the problem is even worse, since its straight up starts swapping even if i assign it a memory limit of 8gb in .wslconfig , hyper-v is at least somehwoe usable
Im running a node server, a react app, and a couple of proxys/databases. Im developing on it with VSC. Any idea on how to fix this absurd amount of ram usage?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

