Skip to content

Commit

Permalink
feat(collect-garbage): run crictl rmi --prune inside kind cluster n…
Browse files Browse the repository at this point in the history
…odes
  • Loading branch information
guesant committed Oct 30, 2024
1 parent d032554 commit ede17e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions collect-garbage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ docker image prune -fa;
echo "Orphaned docker containers and images collected."
echo ================================================================
echo "Cleaning orphaned images inside kind cluster nodes..."
echo ================================================================
for nodeName in $(kind get nodes)
do
docker exec "${nodeName}" bash -c "crictl rmi --prune";
done;
echo ================================================================
echo "Cleanup Done! Thanks."

0 comments on commit ede17e3

Please sign in to comment.