From 53baa47c2299047b98933118b1903f766e173ef9 Mon Sep 17 00:00:00 2001 From: Julien Maitrehenry Date: Wed, 17 Aug 2022 15:51:35 -0400 Subject: [PATCH] Replace docker/desktop-reclaim-space that doesn't work on Apple Silicon --- desktop/faqs/macfaqs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/faqs/macfaqs.md b/desktop/faqs/macfaqs.md index 8baa038e687c..daced35ab7aa 100644 --- a/desktop/faqs/macfaqs.md +++ b/desktop/faqs/macfaqs.md @@ -93,7 +93,7 @@ It might take a few minutes to reclaim space on the host depending on the format Space is only freed when images are deleted. Space is not freed automatically when files are deleted inside running containers. To trigger a space reclamation at any point, run the command: ```console -$ docker run --privileged --pid=host docker/desktop-reclaim-space +$ docker run -it --rm --privileged --pid=host justincormack/nsenter1 /sbin/fstrim -v /var/lib/docker ``` Note that many tools report the maximum file size, not the actual file size. @@ -282,4 +282,4 @@ Now add fish completions from docker. ```console $ ln -shi /Applications/Docker.app/Contents/Resources/etc/docker.fish-completion ~/.config/fish/completions/docker.fish $ ln -shi /Applications/Docker.app/Contents/Resources/etc/docker-compose.fish-completion ~/.config/fish/completions/docker-compose.fish -``` \ No newline at end of file +```