Repository navigation
Show services running an older image than the one on disk in -c status - #374
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
-c statusgrouped 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:
update: … (not pulled)), so all three can show: what runs, what's on disk, and what's on the registry.-vthe older image showsversion,built,digestandsourcelines like the other blocks. When its tag has moved on and it has no digest left, it shows its image ID cut short (id:).version: image removed.built:, and the update is named by its digest cut short, as registry updates are.-c statususage 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,
-vlines and theidfallback, 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.