Skip to content

💡Add version to org.opencontainers.image.version label #1682

Open

Description

@LeeNX

Describe the feature you'd like
Please add the version of release to the org.opencontainers.image.version label

Additional context
Note version tag for other containers vs cloudFlareD
Image

Activity

  1. added
    Type: Feature Request
    on Jun 29, 2026
  2. amayer1983 commented on Jun 29, 2026

    @amayer1983

    👋 Maintainer of Docksentry here (the tool in @LeeNX's screenshot) — +1, with some downstream context for why this small label matters:

    Update managers / dashboards read org.opencontainers.image.version to tell users which version they're running and to show a meaningful v_old → v_new when an update is available. Without it, cloudflared surfaces only as an opaque image hash + build date — you can't tell one release from the next at a glance, whereas every image that sets the label reads cleanly.

    It's a one-line addition at build time. For reference, here's exactly how we wire it — feel free to copy:

    ARG VERSION=dev
    LABEL org.opencontainers.image.version="${VERSION}"
    # release build (GitHub Actions buildx) — pass the tag through:
    build-args: |
      VERSION=${{ github.ref_name }}

    (or docker buildx build --label org.opencontainers.image.version=$VERSION …). It's a pre-defined OCI annotation key.

    Thanks @LeeNX for pushing this across the ecosystem — it genuinely improves life for anyone running these images behind an update tool. 🙏

  3. 0x5t4l1n commented on Oct 17, 2026

    @0x5t4l1n

    Hi, I would like to work on this. Could you assign #1682 to @0x5t4l1n if it is available? I checked the current Dockerfiles and release image manifests: the images have a source label, while the release version is generated from git describe for image tagging. I would pass that same version into the final image label for the public release images and verify the built image metadata. I will check for overlapping work before opening a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Feature Request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions