docker image ls --filter=reference=docker.io/$MY/$IMG
!= docker image ls --filter=reference=$MY/$IMG
#47809
Labels
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
status/0-triage
Description
Filtering images by ref with and without host prefix (e.g.
docker.io
) does not give the same results. Actually the former gives no results at all.Reproduce
docker build --tag=docker.io/$MY/$IMAGE:latest ...
docker image ls --format=json --filter=reference=docker.io/$MY/$IMG:*
docker image ls --format=json --filter=reference=$MY/$IMG:*
Expected behavior
Outputs should be equal (modulo lines order anyway)
docker version
Client: Docker Engine - Community Version: 26.1.1 API version: 1.45 Go version: go1.21.9 Git commit: 4cf5afa Built: Tue Apr 30 11:48:02 2024 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 26.1.1 API version: 1.45 (minimum version 1.24) Go version: go1.21.9 Git commit: ac2de55 Built: Tue Apr 30 11:48:02 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.31 GitCommit: e377cd56a71523140ca6ae87e30244719194a521 runc: Version: 1.1.12 GitCommit: v1.1.12-0-g51d5e94 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
Note as well that
digest
info is missing (none
) informat=json
output:PS: I don't believe this is related to #35536
The text was updated successfully, but these errors were encountered: