osmith submitted this change.
scripts/docker-cleanup: add "docker system prune"
On build4 this freed up another 8.223GB when I just ran it:
$ docker system prune
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all dangling images
- all dangling build cache
Are you sure you want to continue? [y/N]
Change-Id: I98aa5324eaf7cf319625d85bc80d431b89ee50a7
---
M scripts/docker-cleanup.sh
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/scripts/docker-cleanup.sh b/scripts/docker-cleanup.sh
index 982ccea..f1ed6f2 100755
--- a/scripts/docker-cleanup.sh
+++ b/scripts/docker-cleanup.sh
@@ -44,3 +44,6 @@
# remove docker buildkit cache
docker builder prune --all --filter "until=24h" -f
+
+# remove dangling images
+docker system prune -f
To view, visit change 39374. To unsubscribe, or for help writing mail filters, visit settings.