Skip to content

Show services running an older image than the one on disk in -c status - #374

Merged
CLHatch merged 1 commit into
mainfrom
compose-instance-images
Nov 29, 2026
Merged

CLHatch merged 1 commit into
mainfrom
compose-instance-images

Conversation

@CLHatch

@CLHatch CLHatch commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

-c status grouped all of an image's services under one block describing the image their tag now points to. A container still running an older image (pulled since, not recreated) looked as if it ran the new one. This is common after a filtered update that leaves one instance out.

Status

A service whose container runs an image other than the one its tag points to on disk unfolds with what it runs and the image on disk as an update:

sonarr:
  image: lscr.io/linuxserver/sonarr:develop
    version: 5.0.0.3041-ls212 (2026-11-22 15:55:34)
    update:  5.0.0.3041-ls213 (2026-11-27 22:51:28, on disk)
  • A registry update follows as before (update: … (not pulled)), so all three can show: what runs, what's on disk, and what's on the registry.
  • An image's services are grouped by the image their containers run: instances on the image on disk stay folded, and those on the same older image unfold together.
  • With -v the older image shows version, built, digest and source lines like the other blocks. When its tag has moved on and it has no digest left, it shows its image ID cut short (id:).
  • An older image that has since been removed reads version: image removed.
  • Images with no version label never show an empty value: what runs falls back to built:, and the update is named by its digest cut short, as registry updates are.
  • The -c status usage text mentions it.

Order

Within each group, blocks and folded lines with their own lines (possible port conflicts, pending dependency checks) are drawn in the order of their first service, and the folded line of the rest, the services with nothing to show, comes last. Before, unfolded blocks came in the order they were found (an older-image group could land after its newer siblings), and folded lines with their own lines were split around the plain one.

Testing

Unit tests cover the unfold with the folded siblings, -v lines and the id fallback, both update lines in order, a removed image, images with no version label, several instances on one older image, matching instances unchanged, status-only splitting, and name order with and without -v.

Confirmed live on a production host, where one instance left out of an update by a filter ran an older image: it unfolded with its version and the update on disk, and its three up-to-date instances stayed folded.

A service whose container runs an image other than the one its tag now
points to on disk (pulled since, not recreated) unfolds under status
with the version it runs and the image on disk as an update:

  version: 5.0.0.3041-ls212 (2026-11-22 15:55:34)
  update:  5.0.0.3041-ls213 (2026-11-27 22:51:28, on disk)

A registry update follows as before ("not pulled"). An image's services
are grouped by the image their containers run, so instances on the image
on disk stay folded and those on the same older image unfold together.
With -v the older image shows version, built, digest (its ID cut short
when it has none) and source lines; a removed one reads "image removed".

In each group, blocks and folded lines with their own lines (possible
port conflicts, pending checks) are drawn in the order of their first
service, and the folded line of the rest comes last.
@sourcery-ai

sourcery-ai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Sorry @CLHatch, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 21 hours and 53 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@CLHatch
CLHatch merged commit 1974abe into main Nov 29, 2026
6 checks passed
@CLHatch
CLHatch deleted the compose-instance-images branch November 29, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant