- (default location: %LOCALAPPDATA%/Docker/wsl/data).
- diskpart
- select vdisk file=
- expand vdisk maximum=
- wsl --shutdown
| #Using docker with WSL2 can slow your system due to a service vmmem | |
| #vmmem is consuming most of the memory [in my case 12GB] and CPU | |
| #To fix it :- | |
| #Go to your user folder C:\Users\<Your_Username> | |
| #create a file (.wslconfig) with following content | |
| [wsl2] | |
| memory=4GB | |
| processors=4 | |
| taskkill /f /IM nginx.exe | |
| start nginx |