moby / buildkit

concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
https://github.com/moby/moby/issues/34227
Apache License 2.0
8.27k stars 1.17k forks source link

wishlist: annotations on docker/dockerfile images #4888

Open tianon opened 7 months ago

tianon commented 7 months ago

This is a very low priority wishlist item, but it'd be neat if releases to docker/dockerfile could include at the very least the org.opencontainers.image.version pre-defined annotation so that it is more immediately apparent what version a given image represents. :smile: :heart:

(I think it would also be neat to point org.opencontainers.image.url to something like https://github.com/moby/buildkit/releases/tag/dockerfile%2F1.7.1 for where the release notes are, but that's easy enough to go find given a version number :smile:)

tonistiigi commented 7 months ago

Not a replacement for the request, but FYI that the image does support docker run --rm docker/dockerfile:labs --version and the source tag is also present in the provenance attestation.

crazy-max commented 7 months ago

If this is just for releasing, we could probably use the metadata-action: https://github.com/docker/metadata-action/actions/runs/8846523649/job/24292592654#step:4:75