Musa Baloyi
Musa Baloyi

Reputation: 607

Why does Docker Desktop uninstall hang?

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

Upvotes: 31

Views: 37782

Answers (13)

tok
tok

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

BirajPoddar
BirajPoddar

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

christiaantober
christiaantober

Reputation: 341

Open cmd prompt and run this command:

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

Upvotes: 4

Vadim Tomashevsky
Vadim Tomashevsky

Reputation: 338

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

It worked for me.

Upvotes: 0

Peter
Peter

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

Martin Zeitler
Martin Zeitler

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

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

Upvotes: 4

DannyEss
DannyEss

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

Dennis
Dennis

Reputation: 4177

  • Win + R
  • services.msc
  • Stop Docker Desktop Service
  • Uninstall Docker

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

Upvotes: 14

Andrea
Andrea

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

Manoj Kumar
Manoj Kumar

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

Ilya Serbis
Ilya Serbis

Reputation: 22283

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

Upvotes: -2

Thapelo Masethe
Thapelo Masethe

Reputation: 77

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

Upvotes: 7

Related Questions