I just updated my Docker Desktop to the latest version and it stopped working at all. I can’t access settings or anything. After rebooting the machine and trying to run the DD app, it always shows
Docker failed to initialize
Docker Desktop is shutting down.
I was about to ask the very same question + the very same comment about reinstallation. I need it URGENT because I run like 14 or 15 containers for my regular work and I can’t work until it runs again. Also in WSL2. Also I can’t loose data and I’m affraid an uninstall will probably destroy the data.
Nevertheless I don’t see the “shutting down” box. I just see that no icon in the tray appears + if I watch in the Process Explorer it’s there:
Edit the DisplayVersion and Version to a previous version (I used 4.13.0 and 90345 respectively). This allowed to reinstall the same version keeping data, but the result is the same, it doesn’t work. Going to try an older version.
I managed to bring it back to life saving data. To do that, I had to uninstall DD completely and reinstall from scratch. Here is how I saved my data:
Terminate WSL: wsl --shutdown
Copy the data virtual disk to any backup location of your choice: c:\Users\<user name>\AppData\Local\Docker\wsl\data\ext4.vhdx
Uninstall DD completely.
Install the latest version.
Terminate WSL: wsl --shutdown. DD will ask you to restart the engine, ignore it.
Delete the empty docker-desktop-data WSL distribution: wsl unregister docker-desktop-data
Copy your old data disk image back to c:\Users\<user name>\AppData\Local\Docker\wsl\data\ext4.vhdx
Re-register the data distribution: wsl --import-in-place docker-desktop-data c:\Users\<user name>\AppData\Local\Docker\wsl\data\ext4.vhdx.
Restart DD.
This way I’ve got all my containers and data back to life. The only issue I had is with some file bind mounts. Deleting the container and recreating it solved the issue.