add a known issue to uninstall section (#21815)

<!--Delete sections as needed -->

## Description


<!-- Tell us what you did and why -->

Update docs to mention a know issue during CLI uninstall on macOS

## Related issues or tickets


https://docker.slack.com/archives/C083X5V5GDD/p1736870271897639?thread_ts=1736770500.264399&cid=C083X5V5GDD

<!-- Related issues, pull requests, or Jira tickets -->

## Reviews

<!-- Notes for reviewers here -->
<!-- List applicable reviews (optionally @tag reviewers) -->

- [ ] Technical review
- [x] Editorial review
- [ ] Product review

---------

Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com>
This commit is contained in:
karman 2025-01-14 17:27:21 +00:00 committed by GitHub
parent 475846014e
commit 941957c85f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 1 deletions

View File

@ -63,11 +63,20 @@ You can also uninstall Docker Desktop from the CLI. Run:
$ /Applications/Docker.app/Contents/MacOS/uninstall
```
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/<USER_HOME>/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/<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, 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
```