Docker for Windows is not very stable, and each time you start the machine, wait for Docker to start up and check for the following:
- Docker startup look, see if the icon is normal, if it is red, or error is a problem.
- Open Hyper-V Manager to see if the virtual machine is normal, it should contain the default virtual machine, the name is usually MOBYLINUVM, and we have created a virtual machine.
- Open PowerShell as an administrator and execute Docker pull to download an image to see if the network is working properly.
If there is a problem with the above check, try to focus on Docker, by right-clicking in the tray and choosing Quit Docker, waiting for the tray icon to disappear, click Docker for Windows on the desktop to start.
If you restart Docker two times, it will only restart the machine.
Usually after the above repair steps, Docker will function properly.
Docker for Windows availability check