Skip to content
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 build -t <tag> ... creates 2 image references #45179

Closed
cpuguy83 opened this issue Mar 19, 2023 · 4 comments · Fixed by #45124
Closed

docker build -t <tag> ... creates 2 image references #45179

cpuguy83 opened this issue Mar 19, 2023 · 4 comments · Fixed by #45124
Labels
containerd-integration Issues and PRs related to containerd integration kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
Milestone

Comments

@cpuguy83
Copy link
Member

Description

With containerd snapshotters enabled, when building an image with a tag (docker build -t), 2 image references are created and displayed to docker images output.

Reproduce

$ docker build -t asdf --iidfile=img.id.txt - <<<"FROM busybox" && cid="$(docker create $(cat img.id.txt))"; docker rm "${cid}"
$ docker images
REPOSITORY                  TAG       IMAGE ID       CREATED         SIZE
asdf                        latest    d3469aef8c13   2 minutes ago   2.59MB
asdf                        latest    d3469aef8c13   2 minutes ago   2.62kB

Expected behavior

There should only be one reference

docker version

HEAD

docker info

N/A

Additional Info

No response

@cpuguy83 cpuguy83 added kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed. containerd-integration Issues and PRs related to containerd integration labels Mar 19, 2023
@cpuguy83 cpuguy83 added this to the v-next milestone Mar 19, 2023
@thaJeztah
Copy link
Member

thaJeztah commented Mar 19, 2023

Probably same as #44573 (each platform is shown as a separate image (rumpl#113), and with attestations, an extra platform is created)

Also related;

@cpuguy83
Copy link
Member Author

Ah yes, the extra entry appears to be the attestation. Setting --provenance=false gives me a single image reference.

@vvoland
Copy link
Contributor

vvoland commented Mar 20, 2023

This will be fixed by: #45124

@thaJeztah
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containerd-integration Issues and PRs related to containerd integration kind/bug Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
Projects
Development

Successfully merging a pull request may close this issue.

3 participants