fix: report only the retired services a host actually had #9

Merged
christianmanivong merged 1 commits from fix/retired-removal-truthful into main 2026-10-08 13:29:20 +00:00
1 Commits
Author SHA1 Message Date
Christian Manivong 1d99e401b9 fix: report only the retired services a host actually had
CI / check (pull_request) Successful in 17s
`docker rm -f` exits 0 for a container that does not exist, so the
"Removing retired services" step printed "removed container
netork-registry-1" on every deploy of every host, long after the
container was gone. That read as something recreating the registry
each time, and it would hide the one deploy that really removed it.

Check with `docker inspect` first, so only an existing container is
removed and reported. The volume branch needed nothing: `docker volume
rm` already fails for a missing volume.

Closes #7
2026-10-08 15:22:48 +02:00