Remove All folders of docker but cant install new

I installed docker in Windows Pro, unfortunately, something went wrong then i removed all folders from my program files and then try reinstalling always showing Existing installation up to date .

1 Like

Follow this documentation to remove all related folders, not just from program files before reinstalling

Press Win+r, run regedit, remove key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Docker for Desktop and then run installation again.

2 Likes

Thank you! I created an account just to thank you. I wish I was joking when I say I’ve been stuck on this issue for 7 hours.

To fix the Docker reinstall issue, first uninstall Docker via “Programs and Features,” then manually delete any remaining Docker folders in C:\Program Files, C:\ProgramData, and C:\Users\<YourUser>\AppData. After that, clean the registry with a tool like CCleaner and reboot your system. Finally, download the latest Docker version from the official site and reinstall. This should resolve the issue and allow for a fresh installation.

Hey everyone, I ran into the same issue, and none of the solutions did it for me individually.
But when I did all of them at the same time (running installer/uninstaller adds some registries so finish the checklist reboot then run the installer) and reboot, it finally worked. So below is the checklist I followed:

  1. Stop Docker Processes & Services
  • Open Task Manager and end any processes like:
    • Docker Desktop.exe
    • com.docker.backend.exe
  • Open Services (run services.msc) and stop:
    • Docker Desktop Service
    • Docker Engine
  • If services won’t stop, open Command Prompt as admin and run:

cpp

CopyEdit

sc delete com.docker.service
sc delete docker

  1. Delete Docker Registry Entries Open Registry Editor (regedit) and manually delete these keys:
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Docker Desktop
  • HKEY_LOCAL_MACHINE\SOFTWARE\Docker Inc.
  • HKEY_CURRENT_USER\Software\Docker Inc.
  • Optional: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\docker.exe

  1. Delete Leftover Files and Folders

Delete the following folders if they exist:

  • C:\Program Files\Docker\
  • C:\ProgramData\Docker\
  • C:\ProgramData\DockerDesktop\
  • %LOCALAPPDATA%\Docker\
  • %APPDATA%\Docker\
  • %APPDATA%\Docker Desktop\
  • %USERPROFILE%\.docker\

  1. Unregister Docker’s WSL distros (if using WSL2)

Open PowerShell as admin and run:

css

CopyEdit

wsl --unregister docker-desktop
wsl --unregister docker-desktop-data

  1. Reboot Your Computer
1 Like