project-nomad/install
Chris Sherwood 50bf4e3680 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>
2026-07-13 21:13:12 -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 fix(disk-collector): fix storage reporting for NFS mounts 2026-04-21 14:26:28 -07:00
sidecar-updater fix(updater): prune superseded images after update to reclaim disk (#858) 2026-07-13 21:13:12 -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 fix(install): harden toolkit and helper script downloads 2026-06-23 04:46:50 +00:00
management_compose.yaml fix(storage): derive child-app bind paths from the admin's actual storage mount 2026-06-23 04:46:49 +00:00
migrate-disk-collector.md build: compose and install script updates for disk-collector sidecar 2026-03-14 19:54:51 -07:00
migrate-disk-collector.sh chore: add additional warnings to migrate-disk-collector 2026-03-15 03:19:52 +00:00
run_updater_fixes.sh fix: container update pattern in run_updater_fixes 2026-03-05 04:32:09 +00:00
start_nomad.sh feat(install): add start & stop helper scripts 2025-08-08 15:07:32 -07:00
stop_nomad.sh feat(install): add start & stop helper scripts 2025-08-08 15:07:32 -07:00
uninstall_nomad.sh ops: added a check for docker-compose version in Nomad utility scripts 2026-03-20 11:46:10 -07:00
update_nomad.sh ops: added a check for docker-compose version in Nomad utility scripts 2026-03-20 11:46:10 -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