I am trying to uninstall Docker Desktop from my Windows machine: " From the Windows…
- User
I am trying to uninstall Docker Desktop from my Windows machine: " From the Windows Start menu, select Settings > Apps > Apps & features. Select Docker Desktop from the Apps & features list and then select Uninstall. Select Uninstall to confirm your selection. You can also uninstall Docker Desktop from the CLI:
Locate the installer:
C:\Program Files\Docker\Docker\Docker Desktop Installer.exe Uninstall Docker Desktop. In PowerShell, run:
Start-Process 'Docker Desktop Installer.exe' -Wait uninstall In the Command Prompt, run:
start /w "" "Docker Desktop Installer.exe" uninstall After uninstalling Docker Desktop, there may be some residual files left behind which you can remove manually. These are:
C:\ProgramData\Docker C:\ProgramData\DockerDesktop C:\Program Files\Docker C:\Users<your user name>\AppData\Local\Docker C:\Users<your user name>\AppData\Roaming\Docker C:\Users<your user name>\AppData\Roaming\Docker Desktop C:\Users<your user name>.docker " When I open the powershell and type in PS H:> C:\Program Files\Docker\Docker\Docker Desktop Installer.exe, the output: C:\Program : The term 'C:\Program' is not recognized as the name of a cmdlet, function, script file, or operable progra m. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
- C:\Program Files\Docker\Docker\Docker Desktop Installer.exe
-
+ CategoryInfo : ObjectNotFound: (C:\Program:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
- Assistant
The error you are encountering is due to the space in the file path
C:\Program Files\Docker\Docker\Docker Desktop Installer.exe. In PowerShell (and the Command Prompt), paths with spaces need to be wrapped in either double quotes or single quotes to be recognized correctly.Here's how to run the uninstaller in PowerShell:
Start-Process 'C:\Program Files\Docker\Docker\Docker Desktop Installer.exe' -Wait uninstallOr, using double quotes, you can also run it like this:
Start-Process "C:\Program Files\Docker\Docker\Docker Desktop Installer.exe" -Wait uninstallFor the Command Prompt, you can use:
start /w "" "C:\Program Files\Docker\Docker\Docker Desktop Installer.exe" uninstallMake sure you include the entire path in quotes so that it is interpreted correctly. After executing the correct command, the uninstaller should prompt you to confirm the uninstallation of Docker Desktop.