Hey everyone! I wanted to share a tip that might help you out. If you're using WSL2 and your system is freezing or becoming unresponsive, check whether you have the "Resource Saver Mode" enabled in Docker Desktop. I faced this problem on two different workstations, and after trying various things, I found that disabling this mode in the Docker settings fixed the issue immediately. Just go to Docker Desktop -> Settings -> Resources and turn off Resource Saver Mode. I hope this saves you from frustration! If anyone has more info about this issue or has experienced something similar, feel free to jump in!
4 Answers
I encountered the same issue earlier this month! For some reason, Docker Desktop with WSL2 integration didn't recognize I was using containers and went into sleep mode. I had to manually wake it up. Turning off Resource Saver helped a lot.
That's interesting! But what made you think turning off Resource Saver Mode would actually fix your problem? I’d like to know if you had some good reasoning behind it rather than just trial and error, you know?
I came across the same issue while Googling and found a relevant GitHub thread about it. I figured it was worth a shot since others had similar experiences.
Just a thought, but instead of sticking with Docker Desktop, why not set up a proper Linux host or a VM with VMware Workstation? It might save you a lot of hassle overall.
That's not a viable choice for me. WSL2 has become quite useful if you manage the vhdx space properly!
You could also consider using a standard Docker installation inside of WSL2 instead of Docker Desktop. It might save you from some of these issues: https://medium.com/h7w/mastering-docker-on-wsl2-a-complete-guide-without-docker-desktop-19c4e945590b
I noticed that just running any 'docker run' command seems to temporarily disable Resource Saver Mode, so it might be worth trying that out too!