-
Notifications
You must be signed in to change notification settings - Fork 2.6k
kube play snubs save-loaded image #19801
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
Comments
@umohnani8 Is this deliberate to match Kubernetes more closely? |
The (In other words: I'm no Kubernetes expert, but I have trouble seeing how that could be a compatibility feature) |
That is somehow expected. |
The code in question is here: https://github.com/containers/podman/blob/main/pkg/domain/infra/abi/play.go#L995-L1000 I think this can be made smarter and only use |
Another thing: the integration tests cache the images as tarballs. I'd expect caching them in the |
Actually, we could use the |
Tested it and found that 1) is not correct; pulling from |
Use the `newer` pull policy only for the "latest" tag and default to using `missing` otherwise. This speeds up `kube play` as it'll skip reaching out to the registry and also fixes other side-effects described in containers#19801. Fixes: containers#19801 Signed-off-by: Valentin Rothberg <[email protected]>
Take an image,
podman save
it, thenpodman load
it, and it works fine for purposes ofpodman run
. As in, instantaneous with no registry checks.podman kube play
, however, turns up its nose at it and wants to re-fetch it from the registry, causing unnecessary wear and tear on network electrons.Too complicated to explain, so here's a reproducer. Sample output:
DO NOT RUN REPRODUCER ON A SYSTEM YOU CARE ABOUT!
It runs
podman system reset
because I wanted to eliminate variables. It'll probably work safely without thesystem reset
but I haven't tested that.The text was updated successfully, but these errors were encountered: