-
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
[Discussion] Names history support for images #4566
Comments
Sounds good to me, but I would make it conditional via a CLI flag (--previous-names or --history etc.). Currently, the podman-images output is small enough to fit into a standard terminal size. Printing previous names by default, however, can lead to situations where a single image can render the output unreadable.
I would not change existing semantics/behavior. |
Agree with Valentin here |
--no-trunc could be modified to handle this. |
That would imply that we display a |
I was thinking of using REPOs or TAGS for this.
|
I saw that there is some name preservation on image tagging: https://github.com/containers/libpod/blob/c2dfef544476dba671db3ef65b095da9ec18bbf1/libpod/image/image.go#L537-L544 that's also why the ...I'll spin up a PR in the next minutes, let's discuss the implementation details there. 👍 |
Please wait before investing time. I like Dan's proposal but it would display wrong names as those are not valid references anymore. |
It might also break existing users parsing the output. |
Too late, I already spent time on this. 💚
That was my concern too. |
I am fine with the --history flag and the way you are doing it now. After playing with the Buildah version, I like this. |
Since containers/storage#422 is merged I'd like to discuss how we would like to add this feature to libpod. Basically, we now have the information at hand which names an image had in the past (due to retag or untag), which allows two new use cases:
<none>
if a image got untaggedDo we want to add an additional column to
podman images
, likePREVOUS NAMES
?Do we want to fallback to the names history if the image name would be
<none>
?The text was updated successfully, but these errors were encountered: