-
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
Add support for image name history #4568
Conversation
15846bb
to
ddb177a
Compare
ddb177a
to
68800eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of nits. Needs man page changes and bash completion. Other than that, LGTM
a0452da
to
83908be
Compare
I think you need to update pkg/varlinkapi/images.go |
a394fa5
to
24bd03f
Compare
24bd03f
to
eae6eaa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one last nit. I really like that we don't need to change the API but do post-processing in the client 👍
eae6eaa
to
87522e0
Compare
We leverage the containers/storage image history tracking feature to show the previously used image names when running: `podman images --history` Signed-off-by: Sascha Grunert <[email protected]>
87522e0
to
63e46cc
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@saschagrunert the new test in 010-images.bats fails upon rerun because the |
Yeah, do you have a test output at hand somewhere in the CI where I can have a look at it? |
It's on my own system, not CI (that's why I'm seeing this: CI only runs once, I'm running repeated iterations). This, I believe, demonstrates the problem: # podman rmi -a ! get a fresh start
# podman pull -q alpine
965ea09ff2ebd2b9eeec88cd822ce156f6674c7e99be082c7efac3c62f3ff652
# podman images --format '{{.History}}'
<<<< empty, as expected
# podman tag alpine foo
# podman rmi foo
Untagged: localhost/foo:latest
# podman images --format '{{.History}}'
localhost/foo:latest <<<<<<< no longer empty; and this persists to the next BATS run |
Ah I think I got it. Is it because the cleanup function does not remove the image completely after the run? Might this solve the issue already on recurring runs? |
Possibly, but that's intentional: it is critical that these tests |
No not now, but we could build the test images via an empty Dockerfile ad-hoc, maybe via a little helper function to prepare test images. |
We leverage the containers/storage image history tracking feature to
show the previously used image names when running:
podman images --history
Closes #4566
When building two images locally in sequence, then the output looks like this now:
We skip the first history entry in the first line, because it is already part of the first image name.