Skip to content

Commit

Permalink
Merge pull request #19 from ladesa-ro/feat/collect-garbage-kind-node-rmi
Browse files Browse the repository at this point in the history
feat(collect-garbage): run `crictl rmi --prune` inside kind cluster n…
  • Loading branch information
guesant authored Oct 30, 2024
2 parents d032554 + ede17e3 commit 2ae38a3
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 2ae38a3

Please sign in to comment.