Skip to content

Image Labels #300

@psavery

Description

@psavery

Hi there,

I was wondering if shifter images store labels from their corresponding docker images, and if there is a way to look the labels up? For docker and singularity, we are storing important metadata about the images in the labels, and we'd like to do the same with shifter if possible.

For instance, take this Dockerfile (from psavery/test:latest):

FROM ubuntu:20.04
  
LABEL label=3 \
  nested.label=True

We can inspect the labels with docker like so:

docker inspect --format='{{json .Config.Labels}}' psavery/test:latest
# {"label":"3","nested.label":"True"}

Or similarly in singularity, if the labels are defined in the .def file:

singularity inspect test.simg 
# label: 3
# nested.label: True

If labels are not available in shifter, could they be added?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions