question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for several tags per image

See original GitHub issue

Docker allows for tagging an image with several tags. is that doable with singularity/sregistry? sregistry could play an important role here because it would be the tag handler

for example

sregistry tag mso4sc/feelpp-toolbox:develop-v0.106.0-ubuntu-16.04 mso4sc/feelpp-toolbox:v106
sregistry tag mso4sc/feelpp-toolbox:develop-v0.106.0-ubuntu-16.04 mso4sc/feelpp-toolbox:latest

sregistry tag mso4sc/feelpp-toolbox:develop-v0.105.0-ubuntu-16.04 mso4sc/feelpp-toolbox:v105 
sregistry tag mso4sc/feelpp-toolbox:develop-v0.105.0-ubuntu-16.04 mso4sc/feelpp-toolbox:production

Encoding the tag in the filename when a pull is done is then a bad idea. A docker-like system would be better and an image is identified uniquely with a uuid.

/cc @trophime @victorsndvg

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
victorsndvgcommented, Oct 15, 2018

@prudhomm , I think if you upload same image with several tags it’s going to be stored several times. @vsoch , I’m right?

I agree with Christophe, being able to assign several tags to the same image in the server side will help to better manage software lifecycles. I also think sregistry-cli could be the tool in charge of creating/assigning new tags to already stored images. sregistry-cli does not only works with the local repostory, in case of interacting with a sregistry server it allows to push, why no a tag or retag command?

0reactions
vsochcommented, Dec 11, 2019

There isn’t support for adding another tag to an existing image, but if you do upload the same ImageFile using the library client, it will share the same file:

https://github.com/singularityhub/sregistry/blob/master/shub/apps/library/views/images.py#L177

We can’t easily add this to the snippets above (upload from browser or with sregistry) because the nginx upload won’t give us a sha256 sum to ensure non-duplication. But hopefully over time more users will just use singularity to upload, and the other endpoints can be deprecated. Anyway, I’m closing the issue, because now uploading different tags for the same image file using the library client will not upload multiple images.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker - Is it possible for image to have multiple tags?
You can build an image with several tags and then push the image with the --all-tags option. Example: docker build -t reg/user/image:foo -t ......
Read more >
Top 15 Image Tagging Tools for Easier Image Management
Looking for a tool that can help you quickly categorize bulk images? Get to know these 15 Image Tagging Tool for easier image...
Read more >
The Best Ways to Organize Your Files with Tags and Labels
You'll find tags in advanced photo management tools like Lightroom, but here are some simpler apps to help organize your photo library. Pixave...
Read more >
Docker Tagging: Best practices for tagging and versioning ...
I'll start by outlining two basic versioning schemes we've found map ... So, it does a docker run of each of those image:tag...
Read more >
Image tag best practices - Azure Container Registry
Unique tags - A different tag for each image you push to a registry, such as mycontainerimage:abc123. Stable tags. Recommendation: Use stable ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found