Skip to content

bootc expects org.opencontainers.image.version to be set as a label, not an annotation #2136

@fpoirotte

Description

@fpoirotte

Hello,

I stumbled across a minor issue with the way bootc looks for an image's version (when using bootc status).
It expects the version to be set as a label either with the key org.opencontainers.image.version or with the key version (see this function).

However, the OpenContainers image specification only defines org.opencontainers.image.version as a key inside annotations (see here).

To match the OpenContainers spec, would it be possible to change version_for_config to look for org.opencontainers.image.version in the annotations, then look for version in the labels, or would this be considered too much of a breaking change?

Best regards,
François

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions