I was running some tests within my Docker Desktop and it started not responding. I restarted it and it failed to start. So I thought, OK this is a resource problem. I opened the panel to configure the resources. But since it is integrated with WSL2, it said it needed a .wslconfig
file. I’d never configured that before and where would I place it? It resides in %PROFILE%\.wslconfig
thankfully and my quick googling around revealed a set of options that made it work:
[wsl2]
memory=8GB
processors=4
swap=8GB
pageReporting=false
localhostforwarding=true
nestedVirtualization=false