-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
engine: add recursive bind mounts #18669
Conversation
✅ Deploy Preview for docsdocker ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
8e78526
to
9f6852d
Compare
9f6852d
to
53d7ffd
Compare
content/storage/bind-mounts.md
Outdated
|
||
`bind-recursive=readonly` | ||
: Enables recursive bind-mounts. | ||
Submounts are read-only. |
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.
Perhaps we should mention that this produces an error if the kernel or doesn't support this feature (kernel versions older than v5.12).
read-only mounts. Recursive read-only mounts require Linux kernel version 5.12 | ||
or later. If you're running an older kernel version, submounts are |
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.
Actually wondering now; what do we do for native Windows containers, @AkihiroSuda ? Do we produce an error, or do we silently ignore the options (or a warning?)
Is there an equivalent of submounts on Windows? (and are they inherited?) 🤔
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.
Likely to be ignored
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.
Yeah; wondering if Windows in any form inherits nested mounts. I can try asking around for someone to try.
If it doesn't, then ignoring is probably fine (we could print a warning in some cases I guess, but more complicated on docker run
, because we can't mix those with the container's own output)
Signed-off-by: David Karlsson <[email protected]>
53d7ffd
to
2d55bac
Compare
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 leaving a "request changes" as we need to wait for v25.0 to be released before we publish 😅
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
bind-recursive
mount option cli#4606https://deploy-preview-18669--docsdocker.netlify.app/storage/bind-mounts/#recursive-mounts