I'm having a frustrating issue with Docker Desktop on Windows where it keeps showing 0 CPUs available. I have to keep restarting the Docker engine to get it to work again. This usually happens when I'm trying to work my containers a bit harder, and then everything just freezes. Is there a fix or a way to avoid this CPU limitation?
3 Answers
If you're running Docker Desktop, you might be hitting some limitations there. I believe Docker CE has different configurations regarding CPU limits but you'd have to adjust them per container, not globally. It could be worth exploring!
It sounds like Docker is maxing out your CPU and then shutting down. I noticed the same thing when I pushed my containers too hard. It's super annoying! You might want to look for limits you can set for the containers to prevent that overload. Alternatively, setting up Docker on a Linux machine might solve the problem altogether.
I've dealt with this on Ubuntu too! It's driving me nuts. My last resort was thinking about doing a clean reinstall of everything. I just can't find another solution that works.
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures