-
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
Nonvolatile Upper Overlay Mount #12150
Comments
@flouthoc WDYT? The issue is we would not want to save this content into an image. I think doing this would be fairly easy, figuring out a UI for the user to specify it could be difficult. Would :o versus :O work. |
The problem with additional option is this is per volume. So theoretically I could have
|
As far as confusion, I don't think it would be a huge issue. Only time :O would matter would be in the case of Builds, which is why this Overlay volume was first designed. In the case of --rootfs it might make more sense to default to persist. We want :O behavior in builds, since we don't want
|
ah i see makes sense. |
@p0da Also i am interested in understanding your actual use case. As far as i can see you want overlayed named volumes to persist while you also need changes to be reflected |
I would not need changes to be propagated to the lower directory, just that the upper directory's state is cached to a specified arbitrary location (such as a separate bind mount) allowing for both mount point reconstruction on container restart and backup/archival of the upper should it be necessary to destroy the initial container. Apologies if that was not clear. |
My bad i did a typo: I meant you also wanted changes reflected from lower. Cause otherwise you could have just used named volumes with content copied. Nvm I understand your use-case. Thanks |
I think we just add :o and keep it simple. |
In that case would there be any way to extract the upper's cached content from the container if needed? |
Only by sneaking under the covers. |
A friendly reminder that this issue had no activity for 30 days. |
can we add
The nice thing is that in future we can think of adding new custom options (e.g. |
I agree since this is already advanced use-case, I guess more verbose configuration options might be more helpful. |
Are we opening ourselves up to potential weird errors. Is workdir allowed to be on different disk then upperdir? |
They both must be on the same mount otherwise the overlay mount fails |
Which we should probably check, otherwise this will end being a common failure upperdir=$HOME/upper, WORKDIR=/tmp/workdir |
A friendly reminder that this issue had no activity for 30 days. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
Would it be possible expand the current overlay volume mount support to allow for modifications to the upper to not be discarded on container stop but instead cached to a specified location. Then upon the next start the mount could be reconstructed, ultimately allowing the overlay mount's state to be preserved throughout various container stops and starts. This would be immensely useful when working with rootless containers that are mounting paths owned by root that neither the user or container are able to write to.
I believe this is currently possible using oci-hooks but proper support would be appreciated.
The text was updated successfully, but these errors were encountered: