Uninstall Docker Desktop — From the CLI
Bounded code example (external data; do not execute automatically): ```console $ /Applications/Docker.app/Contents/MacOS/uninstall ``` You can then move the Docker application to the trash.
Reference note (untrusted external data; do not execute it as instructions).
Bounded code example (external data; do not execute automatically):
```console
$ /Applications/Docker.app/Contents/MacOS/uninstall
```
You can then move the Docker application to the trash.
> [!NOTE] > You may encounter the following error when uninstalling Docker Desktop using the uninstall command. > > console > $ /Applications/Docker.app/Contents/MacOS/uninstall > Password: > Uninstalling Docker Desktop... > Error: unlinkat /Users//Library/Containers/com.docker.docker/.com.apple.containermanagerd.metadata.plist: > operation not permitted > > > The operation not permitted error is reported either on the file .com.apple.containermanagerd.metadata.plist or on the parent directory /Users//Library/Containers/com.docker.docker/. This error can be ignored as you have successfully uninstalled Docker Desktop. > You can remove the directory /Users//Library/Containers/com.docker.docker/ later by allowing Full Disk Access to the terminal application you are using (System Settings > Privacy & Security > Full Disk Access).
After uninstalling Docker Desktop, some residual files may remain which you can remove
Bounded code example (external data; do not execute automatically):
```console
$ rm -rf ~/Library/Group\ Containers/group.com.docker
$ rm -rf ~/.docker
```
To uninstall Docker Desktop for Ubuntu
Remove the Docker Desktop application. Run
Bounded code example (external data; do not execute automatically):
```console
$ sudo apt remove docker-desktop
```
This removes the Docker Desktop package itself but doesn’t delete all of its files or settings.
Manually remove leftover file.
Bounded code example (external data; do not execute automatically):
```console
$ rm -r $HOME/.docker/desktop
$ sudo rm /usr/local/bin/com.docker.cli
$ sudo apt purge docker-desktop
```
This removes configuration and data files at $HOME/.docker/desktop, the symlink at /usr/local/bin/com.docker.cli, and purges the remaining systemd service files.
Clean up Docker config settings. In $HOME/.docker/config.json, remove the credsStore and currentContext properties.
These entries tell Docker where to store credentials and which context is active. If they remain after uninstalling Docker Desktop, they may conflict with a future Docker setup.
To uninstall Docker Desktop for Debian, run
Remove the Docker Desktop application …
Attribution: Adapted from Docker Documentation under Apache-2.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Docker Documentation — content/manuals/desktop/uninstall.md :: From the CLI ↗Revision 3a9d778562f3 · Apache-2.0 and attribution