Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Labels #300

Open
psavery opened this issue Jul 19, 2021 · 5 comments
Open

Image Labels #300

psavery opened this issue Jul 19, 2021 · 5 comments
Assignees

Comments

@psavery
Copy link

psavery commented Jul 19, 2021

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?

@scanon
Copy link
Member

scanon commented Jul 19, 2021

Currently no. Is the main use case similar to what you show before? Just being able to inspect a specific image and get the labels? You don't, for example, need to query based on these do you?

@psavery
Copy link
Author

psavery commented Jul 19, 2021

@scanon That is correct, we just need to inspect a specific image and get the labels. We don't need to query based on them.

@scanon scanon self-assigned this Jul 19, 2021
@scanon
Copy link
Member

scanon commented Jul 19, 2021

I think this could be added without too much trouble. I'm going to turn this into a feature request.

@psavery
Copy link
Author

psavery commented Aug 20, 2021

@scanon Any updates on when this might be implemented?

@scanon
Copy link
Member

scanon commented Aug 25, 2021

Let me see if I could do a quick version.

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

No branches or pull requests

2 participants