TABLE OF CONTENT

WSL2 on Windows 10 has some issues, but I still prefere it to run my docker containers locally.

One of the problems which used to bug me a lot was the memory consumption by Vmmem process.

The memory consumption goes though the roof. Even on 32GB machine you may run out of memory.

I can’t fix the problem, but at least I know how to patch it up. Here is what I do:

Stop the WSL first.

 wsl --shutdown

then create a .wslconfig file into the root directory of your users folder: C:\Users\<yourUserName>\.wslconfig

My .wslconfig looks this way:

More details on what options to configure can be found in documentation.

After WSL and Docker Engine restart things look much better now.