Skip to content

Commit

Permalink
Merge pull request #1389 from turicas/patch-1
Browse files Browse the repository at this point in the history
Don't try to delete dangling images if none is present
  • Loading branch information
josegonzalez authored Dec 21, 2024
2 parents 7a84b5a + 3100043 commit 66126b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/post-install
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if which systemctl >/dev/null; then
fi

echo "Pruning dangling images"
docker images -qf dangling=true | xargs docker rmi || true
docker images -qf dangling=true | xargs --no-run-if-empty docker rmi

echo "Pruning unused gliderlabs/herokuish images"
docker images -a | grep "^gliderlabs\/herokuish" | grep -v latest | awk '{print $3}' | xargs -r docker rmi || true
Expand Down

0 comments on commit 66126b2

Please sign in to comment.