New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker images ls --digests provides different output if tag provided or not #43830
Comments
I can reproduce this with v22.06.0-beta.0-200-g98d8343aa2 |
From what I've dug into so far, I think the issue probably results from moby/daemon/images/image_list.go Lines 145 to 147 in 6e21389
The output from
|
I think this part: moby/daemon/images/image_list.go Lines 128 to 151 in 6e21389
Should standardize |
The List Images API endpoint's `filters` parameter can be a bit quirky. Unlike most of the filter predicates, which are applied by including or excluding each image from the list, the `reference` predicate filters out individual references from the image summary's `RepoTags` and `RepoDigests` fields. This behaviour is surprising to our users as they cannot use the API to look up the repo digests for a specified image tag (or vice versa) without widening the filter to match on only the repository and post-filtering the results. Change the API such that the filters are only used to determine whether or not to include a particular image in the list of image summaries, without filtering the contents of the summary. Fixes moby#43830 Signed-off-by: Cory Snider <csnider@mirantis.com>
The List Images API endpoint's `filters` parameter can be a bit quirky. Unlike most of the filter predicates, which are applied by including or excluding each image from the list, the `reference` predicate filters out individual references from the image summary's `RepoTags` and `RepoDigests` fields. This behaviour is surprising to our users as they cannot use the API to look up the repo digests for a specified image tag (or vice versa) without widening the filter to match on only the repository and post-filtering the results. Change the API such that the filters are only used to determine whether or not to include a particular image in the list of image summaries, without filtering the contents of the summary. Fixes moby#43830 Signed-off-by: Cory Snider <csnider@mirantis.com>
Description
docker image ls --digests $image
vs.docker image ls --digests $image:$tag
provides different output.Notably digest column is blank if a tag is provided.
Reproduce
Expected behavior
docker image ls --digests debian:bullseye-slim
should provide the digest information.docker version
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: