From 709dcba23a46e6a67d4b4b94e24306468b51c17c Mon Sep 17 00:00:00 2001 From: Mike Miller Date: Mon, 16 Dec 2024 20:29:10 +0200 Subject: [PATCH] Support cases where the VM image contains no docker images --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d588c0dd1..f80d0f6e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -268,7 +268,7 @@ jobs: echo "Initial free space" df -h / echo "Removing all pre-loaded docker images" - docker rmi $(docker image ls -aq) # Removes ~3GB + docker image ls -aq | xargs -r docker rmi # Removes ~3GB df -h / echo "Listing 100 largest packages" dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -rn | head -n 100