-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[additionalimagestores] Rename image ls
'R/O' column and show store path
#10391
Comments
I am fine with adding the additional field, but adding a path will make the display difficult. I usually use /var/lib/shared. I still believe we should treat the additional store as read/only for the point of view of the current store. If the user wants to modify the additional store, they will need to make it primary. |
Displaying a path is difficult due to the potential length or formatting issues, or because the store location isn't readily available to the code rendering the output? Is there any link back to the storage location of the image? If the path is inaccessible, then if possible even a counter:
… would at least give some indication of where the image is (although without a means to get a store location to number mapping, it's not a huge improvement…) Consider the use-case:
… so there may be a cleverer solution, but without this enhancement is looks to me as if the only option is to loop over every image store with the |
I think it would be best to leak the information in containers/storage into the image struct. Then you would have access to it in podman. |
A friendly reminder that this issue had no activity for 30 days. |
@vrothberg wdyt here? is this something we can efficiently do in our image lib? |
could we just consider putting image stores in something like podman info ? less costly? |
That would not solve the issue of where does this specific image come from. I will take a look at this. |
A friendly reminder that this issue had no activity for 30 days. |
Now displays the image store. Not sure if we can do much better. |
A friendly reminder that this issue had no activity for 30 days. |
Apologies for missing the ping. Yes, I am sure we can assemble the storage path in libimage. |
A friendly reminder that this issue had no activity for 30 days. |
Since podman info will show the additional store, I think that is good enough. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
Right now, when
additionalimagestores
is set and any image exists in one of the defined additional stores, the output ofpodman image ls
gains aR/O
column:However, these additional images aren't actually read-only (although they do need additional command-line options to access) and there is no indication of which store the additional images have been discovered in - simply that they exist.
My suggestion is to rename
R/O
toSTORE
, and change the value from a simple boolean tomain
(orgraphRoot
, or thegraphRoot
path?) or the path of the definedadditional imagestore
in which the image exists, e.g.:For context see #9852.
The text was updated successfully, but these errors were encountered: