You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(image): pin the image a container runs to its digest
`nerdctl images` marks an image as in use by resolving the image name stored on the
container, which follows the tag wherever it points now. After `nerdctl tag` moves a tag
onto another image, the container gets attributed to an image it never ran: the U
indicator lands on the wrong row.
Record the image target digest on the container at creation time, in a new
nerdctl/image-digest label, and use it for the in-use lookup. Containers created before
this label existed, or created outside nerdctl, are still resolved by name; an unparsable
value falls back the same way rather than dropping the container from the set.
This also matters for the ACTIVE and RECLAIMABLE columns of `nerdctl system df`, which
build on the same lookup.
Signed-off-by: Eugene Kalinin <e.v.kalinin@gmail.com>
0 commit comments