-
Notifications
You must be signed in to change notification settings - Fork 219
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
always offer to pull latest image when creating a toolbox #873
Comments
Implemented in #875 |
A large number of images can accumulate this way. Disk space is not so expensive nowadays but say 10 images will take up circa 5GB on a system. But generally I agree with you that this is a concern and I have a solution in mind that pulls in the latest images and also migrates older containers to those images. I have yet to create a prototype and address some concerns regarding the approach, though. I'd be willing to go with this before my solution is done but I'd like to make also some changes to the way images are listed. The list of images could get very long. I think (did not test locally) #875 is a bit naive solution and could be more harmful than helpful, though. |
You are right: it would be better to purge older unused toolbox images.
That sounds very interesting. How would that be possible?
Okay sure: looking forward to seeing more |
I have a theory that is only a theory now. When I have a prototype, I'll let the community know :). Maybe it will work and maybe it will not. |
Umm... do you have some examples of these bug reports? I know that people struggle to switch from Rawhide to a freshly branched unstable Fedora at the branching point. Anything else? Have we ever pushed out badly broken images for stable Fedoras? Ultimately users can always 'dnf update' their containers, can't they? |
I will have to go hunting for examples: there should be enough around. Conversely, why would you not want to create a new toolbox with the latest image? |
This one is #643, which should be fixed now. |
If there were no other trade-offs, yes, I would always want to use the latest image. However, if a user keeps accumulating a large number of images, then:
These are trade-offs, and we need to figure out what the right balance is. That's why I was curious about examples of bugs caused by stale images. There could be other ways of looking at this too:
|
The image was not badly broken at the time is was created, I have reported this before in this comment. Apart from automatically pulling, or prompting for pulling, new images, |
Switching from Fedora Rawhide to Branched is already a known and understood issue (and isn't specific to containers). I was looking for other problems that we have come across over time. |
My example is not about switching from Rawhide to Branched. Doing what is proposed in this issue would fix b), EDIT: Ok, if you by "switching from Rawhide to Branched" mean |
Yes, #646 is a much safer change to implement. |
Is your feature request related to a problem? Please describe.
We frequently see bug reports caused by people having an old toolbox image cached locally.
Describe the solution you'd like
toolbox create
should offer to pull down the latest image being requested.For extra points it could check if a newer image exists first.
Additional context
I am imagining something like this:
I think this is the least surprising behavior (though personally I would always want to pull the latest image).
The text was updated successfully, but these errors were encountered: