diff --git a/content/desktop/uninstall.md b/content/desktop/uninstall.md index 2df7eca97f..734a800807 100644 --- a/content/desktop/uninstall.md +++ b/content/desktop/uninstall.md @@ -13,14 +13,34 @@ To uninstall Docker Desktop from your Windows machine: 2. Select **Docker Desktop** from the **Apps & features** list and then select **Uninstall**. 3. Select **Uninstall** to confirm your selection. -> **Important** -> -> Uninstalling Docker Desktop destroys Docker containers, images, volumes, and -> other Docker related data local to the machine, and removes the files generated -> by the application. Refer to the [back up and restore data](backup-and-restore.md) -> section to learn how to preserve important data before uninstalling. -{ .important } +You can also uninstall Docker Desktop from the CLI: +1. Locate the installer: + ```console + $ C:\Program Files\Docker\Docker\Docker Desktop Installer.exe + ``` +2. Uninstall Docker Desktop. + - In PowerShell, run: + ```console + $ Start-Process 'Docker Desktop Installer.exe' -Wait uninstall + ``` + - In the Command Prompt, run: + ```console + $ 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: + +```console +C:\ProgramData\Docker +C:\ProgramData\DockerDesktop +C:\Program Files\Docker +C:\Users\\AppData\Local\Docker +C:\Users\\AppData\Roaming\Docker +C:\Users\\AppData\Roaming\Docker Desktop +C:\Users\\.docker +``` + {{< /tab >}} {{< tab name="Mac" >}} @@ -29,27 +49,26 @@ To uninstall Docker Desktop from your Mac: 1. From the Docker menu, select the **Troubleshoot** icon in the top-right corner of Docker Dashboard and then select **Uninstall**. 2. Select **Uninstall** to confirm your selection. -> Uninstall Docker Desktop from the command line -> -> To uninstall Docker Desktop from a terminal, run: `/Contents/MacOS/uninstall`. -> If your instance is installed in the default location, this -> command provides a clean uninstall: -> -> ```console -> $ /Applications/Docker.app/Contents/MacOS/uninstall -> Uninstalling Docker Desktop... -> Docker uninstalled successfully. You can move the Docker application to the trash. -> ``` -> -> You might want to use the command line to uninstall if, for example, you find that -> the app is non-functional, and you cannot uninstall it from the menu. +You can also uninstall Docker Desktop from the CLI. Run: + +```console +$ /Applications/Docker.app/Contents/MacOS/uninstall +``` + +After uninstalling Docker Desktop, there may be some residual files left behind which you can remove: + +```console +$ rm -rf ~/Library/Group\ Containers/group.com.docker +$ rm -rf ~/Library/Containers/com.docker.docker +$ rm -rf ~/.docker +``` {{< /tab >}} {{< tab name="Linux" >}} -Docker Desktop can be removed from a Linux host using the package manager. +Docker Desktop is removed from a Linux host using the package manager. -Once Docker Desktop has been removed, users must remove the `credsStore` and `currentContext` properties from the `~/.docker/config.json`. +Once Docker Desktop is removed, users must delete the `credsStore` and `currentContext` properties from the `~/.docker/config.json`. {{< /tab >}} {{< tab name="Ubuntu" >}} @@ -130,13 +149,12 @@ $ sudo pacman -Rns docker-desktop Remove the `credsStore` and `currentContext` properties from `$HOME/.docker/config.json`. Additionally, you must delete any edited configuration files manually. +{{< /tab >}} +{{< /tabs >}} + > **Important** > > Uninstalling Docker Desktop destroys Docker containers, images, volumes, and -> other Docker related data local to the machine, and removes the files generated -> by the application. Refer to the [back up and restore data](backup-and-restore.md) -> section to learn how to preserve important data before uninstalling. +> other Docker-related data local to the machine, and removes the files generated +> by the application. To learn how to preserve important data before uninstalling, refer to the [back up and restore data](backup-and-restore.md) section . { .important } - -{{< /tab >}} -{{< /tabs >}} \ No newline at end of file