Image labels can be created within the Dockerfile with the LABEL instruction.
Although not officially documented, we could get these via the already implemented manifests:
- V2 S1 they are stored in the first element of the
history array, and
- V2 S2 they are stored in the
config array.
On quay.io there's an API endpoint for getting labels, which requires a manifestref that must be fetched via the listRepoTags endpoint first.
Implementation state