for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Unable to Uninstall Docker

Open hanish2712-ai opened this issue 6 years ago • 99 comments

I am unable to uninstall Docker from my Windows. It is just stuck at "Removing VM and Images"

image

Expected behavior

It should have been uninstalled.

Actual behavior

Uninstall is stuck.

Information

  • Windows Version: Microsoft Windows [Version 10.0.18363.900]
  • Docker Desktop Version: 2.3.0.3
  • Are you running inside a virtualized Windows e.g. on a cloud server or on a mac VM: No

Things I have tried :

  • I tried checking the Setting.json file by navigating to %APPDATA%\Docker\ but that file is also missing
  • I tried installing back using Docker Desktop Install.exe
  • tried running the docker and Resetting to Default Settings, then uninstall - it failed
  • restarting my laptop

Please help, neither I am able to use docker, install docker nor uninstall docker.

hanish2712-ai avatar Jun 29 '20 18:06 hanish2712-ai

same problem

williamhanseneric avatar Jun 30 '20 21:06 williamhanseneric

Same problem.

I have tried remove and re-download "Docker Desktop Installer.exe". I deleted all Docker files and folders in c:\Program Files. Uninstalled from "Apps & features" or "Control Panel/Uninstall a program".

I also tried to re-install it, but it stated that "Existing installation is up to date". I don't see docker folder in Program Files and have no idea to find it.

Now I can't use, re-install or uninstall Docker. Please help. Docker 2_3_0_3 Not Work

advanchip avatar Jul 01 '20 08:07 advanchip

Same problem here.

Not sure if it matters: Docker Desktop was installed on Win10 1909, then I updated to Win10 2004. Now I cannot uninstall it. (Before upgrading to WSL 2, I tried to completely uninstall Docker Desktop in order to do a clean re-install for WSL 2.)

flesser avatar Aug 13 '20 08:08 flesser

Same problem. Windows 10 Enterprise Version 1903 Build 18362.1016. Docker Desktop 2.3.0.4. I installed Docker Desktop, never enabled Hyper-V (because I need VirtualBox which has compatibility issues with Hyper-V), and never used Docker Desktop. I almost immediately tried to uninstall after installing, and it failed as described here. I then tried to manually uninstall as suggested here: https://github.com/docker/for-win/issues/349, without success.

Now I get this when I try to run "uninstall", since I tried to manually delete, but cannot reinstall or uninstall, so I'm stuck:

& '.\Docker Desktop Installer.exe'  uninstall
[13:18:28.185] [UninstallWorkflow] Reading installation manifest
[13:18:28.189] [UninstallWorkflow] Cannot read the installation manifest
Exception type: System.IO.FileNotFoundException, Exception message: Could not find file 'C:\Program Files\Docker\Docker\installationmanifest.json'., StackTrace:
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
   at CommunityInstaller.UninstallWorkflow.<ProcessAsync>d__12.MoveNext()

bjanders avatar Aug 24 '20 10:08 bjanders

I deleted the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Docker Desktop and was now able to install again. Running uninstall now gives the following error:

[13:32:10.628] [UninstallWorkflow] Reading installation manifest
[13:32:11.212] [UninstallWorkflow] Running before uninstall actions
[13:32:11.212] [UninstallWorkflow] Proceeding with CommunityInstaller.ExecAction
[13:32:11.668] [UninstallWorkflow] Action CommunityInstaller.ExecAction failed
Exception type: System.InvalidOperationException, Exception message: Process InstallerCli.exe exited with code 1, StackTrace:
   at CommunityInstaller.ExecAction.<DoAsync>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at CommunityInstaller.UninstallWorkflow.<ProcessAsync>d__12.MoveNext()

bjanders avatar Aug 24 '20 10:08 bjanders

I stopped and disabled the Docker Desktop service and ran uninstall from an admin prompt, and now it succeeded:

& "C:\Program Files\Docker\Docker\Docker Desktop Installer.exe" uninstall
[14:05:46.787] [UninstallWorkflow] Reading installation manifest
[14:05:47.358] [UninstallWorkflow] Running before uninstall actionser.ExecAction
[14:05:47.359] [UninstallWorkflow] Proceeding with CommunityInstaller.ExecAction
[14:05:49.566] [UninstallWorkflow] Proceeding with installed componentsocess InstallerCli.exe exited with code 1, StackT
[14:05:49.566] [UninstallWorkflow] Proceeding with CommunityInstaller.ExecAction
[14:05:49.567] [UninstallWorkflow] Proceeding with CommunityInstaller.PathAction
[14:05:49.973] [UninstallWorkflow] Proceeding with CommunityInstaller.PathAction
[14:05:50.298] [UninstallWorkflow] Proceeding with CommunityInstaller.AutoStartAction
[14:05:50.300] [UninstallWorkflow] Proceeding with CommunityInstaller.ShortcutAction
[14:05:50.301] [UninstallWorkflow] Proceeding with CommunityInstaller.ShortcutAction
[14:05:50.302] [UninstallWorkflow] Proceeding with CommunityInstaller.ServiceAction
[14:05:50.311] [UninstallWorkflow] Proceeding with CommunityInstaller.EnableFeaturesAction
[14:05:50.312] [UninstallWorkflow] Proceeding with CommunityInstaller.AddToGroupAction
[14:05:50.313] [UninstallWorkflow] Proceeding with CommunityInstaller.CreateGroupAction
[14:05:50.315] [UninstallWorkflow] Unregistering product
[14:05:50.321] [FileSystem] Deleting C:\Program Files\Docker\Docker
[14:05:50.620] [FileSystem] Deleted C:\Program Files\Docker\Docker successfully
[14:05:50.621] [UninstallWorkflow] Uninstalled finished

bjanders avatar Aug 24 '20 11:08 bjanders

This is all I see when I try to uninstall

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

[12:09:03.144] [UninstallWorkflow] Reading installation manifest
[12:09:03.708] [UninstallWorkflow] Running before uninstall actions
[12:09:03.709] [UninstallWorkflow] Proceeding with CommunityInstaller.ExecAction

It freezes there.

This is what's in the install log:

Version: 2.4.0.0 (48506)
Channel: stable
Sha1: b18c8c862baf6c395898f15dd01857d96ddca564
Started on: 2020/10/08 12:09:03.961
Resources: C:\Program Files\Docker\Docker\resources
OS: Windows 10 Pro
Edition: Professional
Id: 1909
Build: 18363
BuildLabName: 18362.1.amd64fre.19h1_release.190318-1202
File: C:\Users\calvin\AppData\Local\Docker\install-log.txt
CommandLine: "C:\Program Files\Docker\Docker\InstallerCli.exe" -k -u
You can send feedback, including this log file, at https://github.com/docker/for-win/issues
[12:09:04.050][ComponentVersions ][Info   ] Edition community
[12:09:04.068][Installer         ][Info   ] Killing processes...
[12:09:04.197][Cmd               ][Info   ] time="2020-10-08T12:09:04.196926400-05:00" level=fatal msg="The specified service does not exist as an installed service."
[12:09:04.202][Installer         ][Info   ] Uninstalling...
[12:09:04.273][WinDaemonUtils    ][Info   ] skip deleting C:\ProgramData\Docker\cli-plugins
[12:09:04.280][HyperV            ][Info   ] Destroy
[12:09:04.588][HyperVGuids       ][Info   ] Removing GUIDs...
[12:09:04.588][HyperVGuids       ][Info   ] GUIDs removed
[12:09:04.592][LinuxWSL2Engine   ][Info   ] Destroying distro

Tried stopping the service manually first, didn't make a difference.

calvin-fisher avatar Oct 08 '20 16:10 calvin-fisher

Hi, I have the same issue of not being able to unistall Docker 2.4.0:

I have tried from the command prompt in admin as well as windows -> remove programs: [Windows 10]

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

C:\WINDOWS\system32>[09:06:55.668] [UninstallWorkflow] Reading installation manifest
[09:06:56.595] [UninstallWorkflow] Running before uninstall actions
[09:06:56.597] [UninstallWorkflow] Proceeding with CommunityInstaller.ExecAction
[09:06:57.268] [UninstallWorkflow] Action CommunityInstaller.ExecAction failed
Exception type: System.InvalidOperationException, Exception message: Process InstallerCli.exe exited with code 1, StackTrace:
   at CommunityInstaller.ExecAction.<DoAsync>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at CommunityInstaller.UninstallWorkflow.<ProcessAsync>d__11.MoveNext()

image

Is there any solution to this?

Walshest avatar Oct 12 '20 07:10 Walshest

I have the same issue of not being able to unistall Docker 2.4.0:

Is there any solution to this?

Did you manually stop the Docker service before uninstalling? Your output looks the same as mine when I did not stop the service.

bjanders avatar Oct 12 '20 08:10 bjanders

I have the same issue of not being able to unistall Docker 2.4.0: Is there any solution to this?

Did you manually stop the Docker service before uninstalling? Your output looks the same as mine when I did not stop the service.

Solved: There was a process I hadn't noticed in Task Manager and could only close when I had it in Admin mode: image

The Docker un-installation has worked. Thanks for the quick reply.

Walshest avatar Oct 12 '20 11:10 Walshest

@Walshest Your solution worked for me.

sumansaurav91 avatar Oct 27 '20 05:10 sumansaurav91

I do not have this process/service running and I still cannot uninstall Docker 2.4.0 on Windows which I have to do to regain access to my WSL machine :/

murbanowicz avatar Oct 27 '20 06:10 murbanowicz

Samma problem. Försökte avinstallera från cmd. Se bild. docker_uninstall

mictoln avatar Nov 02 '20 11:11 mictoln

Samma problem. Försökte avinstallera från cmd. Se bild.

And you are sure the Docker Desktop Service is not running?

image

bjanders avatar Nov 02 '20 13:11 bjanders

Same problem here.. unable to uninstall Docker Desktop in Windows 10 64-bit

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

[22:36:29.779] [UninstallWorkflow] Reading installation manifest [22:36:30.982] [UninstallWorkflow] Running before uninstall actions [22:36:30.983] [UninstallWorkflow] Proceeding with CommunityInstaller.ExecAction [22:36:49.190] [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 CommunityInstaller.UninstallWorkflow.d__11.MoveNext()

I already made sure "Docker Desktop Service" (com.docker.service) is stopped.

What's solution?

lixtang avatar Nov 05 '20 14:11 lixtang

I was able to uninstall Docker by disabling Hyper-V (in Windows Features) and rebooting my machine. Then the Docker uninstall process went smoothly.

hodgef avatar Nov 12 '20 00:11 hodgef

I was able to uninstall Docker by disabling Hyper-V (in Windows Features) and rebooting my machine. Then the Docker uninstall process went smoothly.

I removed Hyper-V minikube entry that I created previously, stopped all Hyper-V related services, and rebooted laptop: image

But uninstall Docker Desktop is still stuck: image

lixtang avatar Nov 12 '20 12:11 lixtang

Disabling Windows Hyper-V and rebooting helped me to uninstall Docker

Brandonage avatar Nov 12 '20 12:11 Brandonage

@lixtang You have to disable it in Windows Features image

hodgef avatar Nov 12 '20 13:11 hodgef

I'm having the same issue with v2.5 using it with WSL. Any idea when this will be fixed?

wh1337 avatar Dec 03 '20 16:12 wh1337