Skip to content

Commit

Permalink
ENGDOCS-1882 (#18827)
Browse files Browse the repository at this point in the history
* ENGDOCS-1882

* ENGDOCS-1882

* review edits and support request

* Update content/desktop/uninstall.md
  • Loading branch information
aevesdocker authored Dec 5, 2023
1 parent f2cdc45 commit ccecc67
Showing 1 changed file with 47 additions and 29 deletions.
76 changes: 47 additions & 29 deletions content/desktop/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -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\<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
```

{{< /tab >}}
{{< tab name="Mac" >}}

Expand All @@ -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: `<path to Docker app>/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" >}}
Expand Down Expand Up @@ -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 >}}

0 comments on commit ccecc67

Please sign in to comment.