sig-cloud-instance-images icon indicating copy to clipboard operation
sig-cloud-instance-images copied to clipboard

Images should have annotations/labels

Open NeilHanlon opened this issue 3 years ago • 1 comments

Originally removed per request by Docker Hub official images team.

Background

The images we first published had labels on them with some information. This was removed when going to the Library images because the label-schema spec being used was deprecated. I opted to simply remove all the labels and revisit it at a future time.

Labels

Previously, the container had labels such as:

    org.label-schema.name="Rocky Linux Base Image" \
    org.label-schema.vendor="Rocky Enterprise Software Foundation" \
    org.label-schema.license="BSD-3-Clause" \
    org.label-schema.build-date="20210620" \
    org.opencontainers.image.title="Rocky Linux Base Image" \
    org.opencontainers.image.vendor="Rocky Enterprise Software Foundation" \
    org.opencontainers.image.licenses="BSD-3-Clause" \
    org.opencontainers.image.created="2021-06-20 00:00:00+01:00"

The label-schema annotations are now deprecated: superseded by the OCI image specification standard: https://github.com/opencontainers/image-spec/blob/v1.0.1/annotations.md

We should look and add any labels we think would be helpful, with particular mind to SBOM. This will be automated and generated as part of the image build pipeline.

NeilHanlon avatar Apr 09 '22 15:04 NeilHanlon

@lumarel we might want to integrate this, maybe

NeilHanlon avatar Oct 01 '22 17:10 NeilHanlon