Reputation: 607
I'm trying to uninstall Docker Desktop (it doesn't launch) so that i can reinstall it again, I have tried updating it , It keeps telling me that i have the latest Docker Desktop
Upvotes: 31
Views: 37782
Reputation: 981
I run then command
"C:\Program Files\Docker\Docker\Docker Desktop Installer.exe" uninstall
and got error message that access to directory C:\ProgramData\DockerDesktop\tmp-d4w is not allowed. I changed the access rights so that I could access the directory and then was able to uninstall Docker Desktop.
Upvotes: 1
Reputation: 31
Unregistering the docker-desktop wsl disto/image worked for me.
Try listing out all the existing wsl distros using:
wsl --list --all --verbose
You might find something like below:
NAME STATE VERSION
* Ubuntu Stopped 1
docker-desktop-data Stopped 2
docker-desktop Uninstalling 2
Try to unregister the docker-desktop Distro using
wsl --unregister docker-desktop
Then try to open/uninstall Docker Desktop and it should work.
Listing out the wsl distro's will result in something like below:
NAME STATE VERSION
* Ubuntu Stopped 1
docker-desktop-data Running 2
docker-desktop Running 2
Upvotes: 3
Reputation: 341
Open cmd prompt and run this command:
"C:\Program Files\Docker\Docker\Docker Desktop Installer.exe" uninstall
Upvotes: 4
Reputation: 338
Features -> UnCheck -> Hyper V - Reset -> UnInstall docker.
It worked for me.
Upvotes: 0
Reputation: 3495
None of these solved it for me. Turns out it can fail to uninstall if you use a RAMDisk for your temp folder.
Apparently the same issue affects updates too.
Upvotes: 2
Reputation: 76679
The uninstaller requires Hyper-V to be installed, when having used that.
One has to uninstall Docker Desktop first and then can uninstall Hyper-V.
Upvotes: 0
Reputation: 99
Before you uninstall ensure you stop Docker Desktop Service on windows Service manager. The steps are as follows:
Services
Run as administrator
Happy Uninstall
Upvotes: 4
Reputation: 1
I had the same problem on my working laptop and I had to manually delete all the regestry keys (win + r, then type in regedit) and the whole folder in C:\Program Files. After that I had no issues and Docker Desktop completely disappeared in Apps
Upvotes: -9
Reputation: 4177
See: https://github.com/docker/for-win/issues/7489#issuecomment-757835075
Upvotes: 14
Reputation: 4483
Closed the window, downloaded a new version from the official website, then installed again. When asked if I wanted to replace the old version with the new one, I answered "Yes" and everything went fine.
Upvotes: 2
Reputation: 5637
I Found the solution, and of course it involves the Windows Registry.
There was a key in Windows Registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall called “Docker Desktop.”
I deleted it and all of its sub-keys and the Docker installation then went to completion.
Upvotes: 18
Reputation: 77
Delete the contents of C:\Program Files\Docker and download a fresh Docker installer
Upvotes: 7