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
[release/1.7 backport] Add WithReadonlyTempMount
to create readonly temporary mounts
#8300
[release/1.7 backport] Add WithReadonlyTempMount
to create readonly temporary mounts
#8300
Conversation
This is necessary so we can mount snapshots more than once with overlayfs, otherwise mounts enter an unknown state. related: moby/buildkit#1100 Signed-off-by: Laura Brehm <laurabrehm@hey.com> Co-authored-by: Zou Nengren <zouyee1989@gmail.com> (cherry picked from commit daa3a76) Signed-off-by: Laura Brehm <laurabrehm@hey.com>
/cc @thaJeztah |
Hi @laurazard. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
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.
LGTM, but also see the discussion on the 1.6 backport; #8299
Failures look unrelated, but I can't rerun them afaict |
Backport of #8259
Backporting since we'd like to use this in:
docker diff
moby/moby#44964potential concerns
the changes do functionally change the code in
diff/walking/differ.go
-Compare()
to make the temp mount readonly. I don't think that should introduce any issues (and addresses #6077) but I thought it worth mentioning.