Why does Docker Desktop uninstall hang?
Asked Answered
S

12

31

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

Gui of docker desktop state

Swoosh answered 12/3, 2020 at 7:50 Comment(1)
This issue still exists in 2023 June !Halfdan
D
12
  • Win + R
  • services.msc
  • Stop Docker Desktop Service
  • Uninstall Docker

See: https://github.com/docker/for-win/issues/7489#issuecomment-757835075

Duisburg answered 29/7, 2021 at 12:3 Comment(0)
A
15

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.

Agitate answered 2/2, 2021 at 18:0 Comment(6)
In my case the uninstall process broke after thisBowshot
In my case i could not uninstall it from appwiz after that.Fractionate
I guess, SHDR and @Bowshot - you must first uninstall the app from windows uninstaller and then delete the above key in registry. Restart the windows and reinstall the docker.Agitate
Careful, this made things much worse for me: if the problem is uninstalling, deleting that registry key now made the uninstallation process not even able to recognize the current folders.Progressionist
@FélixAdriyelGagnon-Grenier - looks like you did some other mistake as this (my answer) way most were able to resolve the issue..Agitate
@ManojKumar Yes, people who were installing docker may find this useful, however, the current question is about UNinstalling docker. Your solution prevents the uninstallation to proceed as the process cannot find information about what to uninstall. By the way, we're now three different people who said our uninstallation was bricked after trying this.Progressionist
D
12
  • Win + R
  • services.msc
  • Stop Docker Desktop Service
  • Uninstall Docker

See: https://github.com/docker/for-win/issues/7489#issuecomment-757835075

Duisburg answered 29/7, 2021 at 12:3 Comment(0)
M
6

Delete the contents of C:\Program Files\Docker and download a fresh Docker installer

Mudlark answered 12/3, 2020 at 8:10 Comment(3)
I tried that but Windows thinks the installation is already up to date, so it does nothing. If there's a manual way to uninstall, I need to find it.Yammer
@Yammer It works. After it shows that try uninstalling again. Then you can use Docker installer, if required.Dasher
Had to do this in conjunction with the registry change suggested by @manoj kumarFungible
C
4

Before you uninstall ensure you stop Docker Desktop Service on windows Service manager. The steps are as follows:

  • Hit the Windows Key then type Services
  • Select Run as administrator
  • Look for Docker Desktop Service -> Right click -> Stop
  • Proceed with normal uninstall of the Docker Desktop from the programs and features list.

Happy Uninstall

Claret answered 24/3, 2022 at 8:10 Comment(0)
A
4

Open cmd prompt and run this command:

"C:\Program Files\Docker\Docker\Docker Desktop Installer.exe" uninstall

Attainture answered 13/10, 2023 at 17:43 Comment(2)
This is the solution that worked for me, except that the uninstaller was unable to delete the directory "C:\Program Files\Docker\Docker" because that was the directory that cmd.exe was currently in. To get around that, I think it's better to navigate to "C:\Program Files" then run "Docker\Docker\Docker Desktop Installer.exe" uninstallHuntsville
I edited the answer and simplified it even further. Thanks for your suggestion.Attainture
O
2

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.

Operant answered 21/6, 2021 at 10:47 Comment(0)
R
1

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
Respite answered 14/5, 2024 at 22:4 Comment(0)
P
0

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.

Pervasive answered 10/5, 2022 at 7:35 Comment(0)
P
0

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.

Prosper answered 20/3, 2024 at 23:34 Comment(0)
F
0

Features -> UnCheck -> Hyper V - Reset -> UnInstall docker.

It worked for me.

Foil answered 9/4, 2024 at 20:13 Comment(0)
M
-2

Try to restart your PC. Then try to uninstall again.

Municipalize answered 11/12, 2020 at 1:49 Comment(0)
H
-9

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

Hotbed answered 11/9, 2021 at 8:31 Comment(1)
Delete all C:\Program Files is a little too much ? Why don't find the exact folder that is not fine instead of breaking lot of program for docker fix ? Another answer talk about C:\Program Files\Docker and a second one talk about regedit too, so it's seems to be a duplicate ?Ethiopian

© 2022 - 2025 — McMap. All rights reserved.