-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Open
Labels
area/imagescontainerd-integrationIssues and PRs related to containerd integrationIssues and PRs related to containerd integrationkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.kind/enhancementEnhancements are not bugs or new features but can improve usability or performance.Enhancements are not bugs or new features but can improve usability or performance.
Description
Description
When multiple variants of an image are present, trying to reference a specific variant (e.g. to inspect) produces an error;
docker pull --quiet --platform=linux/amd64 alpine
docker pull --quiet --platform=linux/arm64 alpine
docker image ls --tree
IMAGE ID DISK USAGE CONTENT SIZE EXTRA
alpine:latest a8560b36e8b8 25MB 7.64MB
├─ linux/amd64 1c4eef651f65 12.1MB 3.64MB
├─ linux/arm/v6 903bfe2ae994 0B 0B
├─ linux/arm/v7 9c2d245b3c01 0B 0B
├─ linux/arm64/v8 757d680068d7 12.8MB 3.99MB
├─ linux/386 2436f2b3b7d2 0B 0B
├─ linux/ppc64le 9ed53fd3b831 0B 0B
├─ linux/riscv64 1de5eb4a9a67 0B 0B
└─ linux/s390x fe0dcdd1f783 0B 0B
Inspecting the top-level ID works;
docker image inspect --format '{{.Id}}' a8560b36e8b8
sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
But attempting to inspect one of the variants does not;
docker image inspect --format '{{.Id}}' 1c4eef651f65
Error response from daemon: No such image: 1c4eef651f65:latest
docker image inspect --format '{{.Id}}' 757d680068d7
Error response from daemon: No such image: 757d680068d7:latest
I'd expect being able to reference those variants using the ID that's shown, e.g. to;
- inspect
- delete
- run
zanecodes
Metadata
Metadata
Assignees
Labels
area/imagescontainerd-integrationIssues and PRs related to containerd integrationIssues and PRs related to containerd integrationkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.kind/enhancementEnhancements are not bugs or new features but can improve usability or performance.Enhancements are not bugs or new features but can improve usability or performance.