> The operation not permitted error is reported either on the file `.com.apple.containermanagerd.metadata.plist` or on the parent directory `/Users/<USER_HOME>/Library/Containers/com.docker.docker/`. This error can be ignored as you have successfully uninstalled Docker Desktop.
> You can remove the directory `/Users/<USER_HOME>/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:
```console
$ rm -rf ~/Library/Group\ Containers/group.com.docker
$ rm -rf ~/.docker
```
With Docker Desktop version 4.36 and earlier, the following files may also be left on the file system. You can remove these with administrative privileges:
```console
/Library/PrivilegedHelperTools/com.docker.vmnetd
/Library/PrivilegedHelperTools/com.docker.socket
```
{{< /tab >}}
{{< tab name="Ubuntu" >}}
To uninstall Docker Desktop for Ubuntu:
1. Remove the Docker Desktop application. Run:
```console
$ sudo apt remove docker-desktop
```
This removes the Docker Desktop package itself but doesn’t delete all of its files or settings.
2. Manually remove leftover file.
```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.
3. 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.
{{< /tab >}}
{{< tab name="Debian" >}}
To uninstall Docker Desktop for Debian, run:
1. Remove the Docker Desktop application:
```console
$ sudo apt remove docker-desktop
```
This removes the Docker Desktop package itself but doesn’t delete all of its files or settings.
2. Manually remove leftover file.
```console
$ rm -r $HOME/.docker/desktop
$ sudo rm /usr/local/bin/com.docker.cli