fix: remove only the images the deploy replaced, never every unused one #16

Open
christianmanivong wants to merge 1 commits from fix/remove-only-replaced-images into main
pull from: fix/remove-only-replaced-images
1 Commits
Author SHA1 Message Date
Christian Manivong 476afe3982 fix: remove only the images the deploy replaced, never every unused one
CI / check (pull_request) Successful in 19s
The deploy ended with docker image prune -af: every image no container
used at that moment. On a host that runs other things too, that takes
their rollback images; the KB's copy of this line did exactly that on
compute-01 (NetOrk/kb-server#157).

deploy.sh now records the image IDs netOrk's own containers use before
the swap and, after the verification and the migration, hands them to
remote/remove_replaced_images.sh. It removes each by its tags, or by its
ID once a moving tag left it without one, and keeps any image a
container still uses: a redeploy of the same tag replaces nothing.
2026-10-23 12:06:08 +02:00