Docker Community Forums

Share and learn in the Docker community.

Cannot uninstall Docker for Windows

Same thing happens to me. Trying to uninstall after literally everything about docker fails:

  1. can’t run hello-world
  2. can’t run cheers2019 tutorial
  3. can’t open docker desktop

I literally upgrade my windows system to install docker. Safe to say my experience thus far has been…sub-par.

Now all i wan to do is uninstall and reinstall, in the hopes that that will fix anything at all. Apparently that is an issue as well.

I used “regedit” searched for docker and deleted the registry keys so that the microsoft windows will forget that the docker is already installed

Then, I installed the latest version

I had an update issue on Windows 10 (1909) when trying to install 2.3.0.4 from 2.3.0.3. Based on a comment in this thread (Cannot uninstall Docker for Windows) by ebriney I killed the com.docker.service and retried which did work for me. Weird that the install process could not kill it even when running in admin mode.

Seriously, I had to wipe all Docker Folders inside C:/Program Files/Docker + all Data in Appdata/Roaming and Appdata/Local and LocalLow for it to be able to get reinstalled. Also every single Docker Registry entry.

Docker first wouldn’t update, it was stuck at updating when choosing to not install the update and the Installer encountered an error during repair/reinstall/upgrade. For any production totally unusable.

I get this error when I try to uninstall Docker on Windows Enterprise: (Stopped Docker , disabled it and ran this as administrator Docker"Docker Desktop Installer.exe" uninstall)
C:\Program Files\Docker>[15:01:17.869] [UninstallWorkflow] Reading installation manifest
[15:01:21.484] [UninstallWorkflow] Running before uninstall actions
[15:01:21.486] [UninstallWorkflow] Proceeding with CommunityInstaller.ExecAction
[15:01:23.467] [UninstallWorkflow] Action CommunityInstaller.ExecAction failed
Exception type: System.InvalidOperationException, Exception message: Process InstallerCli.exe exited with code 1, StackTrace:
at CommunityInstaller.ExecAction.d__28.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CommunityInstaller.UninstallWorkflow.d__11.MoveNext()

Having run into installer issues with v 3.0.1, I’ve found that the main thing the docker checks for install state is the registry key “Docker Desktop” under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

That’s where it pulls the currently installed version number from.

thank for the question make me know more
merchant crypto

Hello!

I was run Docker Desktop on Windows 10 under WSL 1, then I tried to migrate to WSL 2 and somehow broke it, I can neither uninstall nor install a newer version of Docker. An attempt to delete docker files on a disk failed with an access error even under local admin. In my case, the problem was in conflict between the process of installation/uninstallation of Docker and some Docker services that were simultaneously running at that moment and somehow blocking it.

I fixed it by doing these steps:
1 delete Docker VM in Windows Hyper-V Manager
2 stop Docker service in Windows Service Manager
3 then I was able to delete all docker files on a disk (C:\Program Files\Docker)
4 download and install a fresh version of Docker
5 at that point it was still broken so I repeated steps 1 and 2 and then uninstalled it “normally” through windows Programs and Features > Uninstall
6 install Docker again, and at that point it was finally work

Hope it will help someone, cheers!