-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
kube play, in parallel, leaves stray untagged pause images #23292
Comments
Yeah the builds happen in parallel as the image does not yet exists. But then a tag can only pint to one image so the last build image gets the name and then latter in the code will be used as it passes around the final name not the image id. |
As of how to fix I really hate the pause image. I really wanted to just use a overlay mount on the rootfs for catatonit instead os this "useless" extra image no user really cares about and that gets rebuild for each podman version |
i.e see last comments on the PR #11956 (comment) There were issues with that back then but maybe it is worth to try that approach again? |
I did a quick experiment: 16f67fe This does work (of course needs proper code cleanup). However I am unsure if this is the right way to go about it. |
A friendly reminder that this issue had no activity for 30 days. |
Workaround for containers#23292, where simultaneous 'pod create' commands will all start a podman-build of the pause image, but only one of them will be tagged, and the others will leak <none> images. Signed-off-by: Ed Santiago <[email protected]>
Initial setup:
Create three kube files, and run three kubes in parallel:
(Apparently) all three tried to build a pause image, one got tagged, the other two did not:
One of those images is in use by one of the containers, and can't be deleted until the pod stops. The other is not in use and can be rmi'ed. This confuses me because
buildPauseImage()
returns an image name, not ID. But I'm not going to lose sleep over that.Relevant code seems to be https://github.com/containers/podman/blob/main/pkg/specgen/generate/pause_image.go . I can't think of any way to fix this that doesn't involve locks, yuk. Hope y'all have better solutions.
The text was updated successfully, but these errors were encountered: