project-nomad/install
chriscrosstalk 2a11a81eb4
fix(updater): prune superseded images after update to reclaim disk (#1101)
* fix(updater): prune superseded images after update to reclaim disk (#858)

The sidecar updater pulled new image versions on every update but never
removed the old ones, so /var/lib/containerd grew unbounded across
releases (50+ GB of orphaned layers observed on long-running installs).

After a confirmed-successful recreate, prune (1) dangling layers left by
re-pulled moving tags and (2) superseded tags of the core services this
updater manages (the images in compose.yml), keeping the refs now in use.

Deliberately avoids `docker system/image prune -a`: that would delete
images for installed-but-stopped Supply Depot / curated services and
force a re-pull that fails on an offline box. Scoped strictly to
compose-managed repositories; optional/offline images are never touched.
Uses `docker rmi` without -f so anything still referenced by a container
is refused rather than force-removed. Best-effort; never fails the update.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(updater): scope image pruning to those directly used by NOMAD

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: jakeaturner <jturner@cosmistack.com>
2026-07-19 22:22:45 -07:00
..
calibre-empty-library feat(supply-depot): per-app onboarding docs, install fixes, and in-app Docs links 2026-06-23 04:46:47 +00:00
sidecar-disk-collector chore: standardize brand name to Project NOMAD, retire backronym 2026-07-18 09:56:54 -07:00
sidecar-updater fix(updater): prune superseded images after update to reclaim disk (#1101) 2026-07-19 22:22:45 -07:00
collect_disk_info.sh feat: disk info collection 2025-12-07 19:13:43 -08:00
entrypoint.sh fix: lazy-connect + retry for ioredis to avoid blocked startup 2026-06-23 17:40:10 +00:00
install_nomad.sh chore: standardize brand name to Project NOMAD, retire backronym 2026-07-18 09:56:54 -07:00
management_compose.yaml chore: standardize brand name to Project NOMAD, retire backronym 2026-07-18 09:56:54 -07:00
migrate-disk-collector.md chore: standardize brand name to Project NOMAD, retire backronym 2026-07-18 09:56:54 -07:00
migrate-disk-collector.sh chore: standardize brand name to Project NOMAD, retire backronym 2026-07-18 09:56:54 -07:00
run_updater_fixes.sh chore: standardize brand name to Project NOMAD, retire backronym 2026-07-18 09:56:54 -07:00
start_nomad.sh chore: standardize brand name to Project NOMAD, retire backronym 2026-07-18 09:56:54 -07:00
stop_nomad.sh chore: standardize brand name to Project NOMAD, retire backronym 2026-07-18 09:56:54 -07:00
uninstall_nomad.sh fix(install): define missing header_red + colors in uninstall/update scripts (#1098) 2026-07-19 21:37:37 -07:00
update_nomad.sh fix(install): define missing header_red + colors in uninstall/update scripts (#1098) 2026-07-19 21:37:37 -07:00
wikipedia_en_100_mini_2025-06.zim fix(ZIM): host initial zim download in GH repo 2025-09-02 22:44:01 -07:00
wikipedia_en_100_mini_2026-01.zim build: add latest initial zim file 2026-03-24 02:08:18 +00:00