Skip to content
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

Add support for bind recursive #12210

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Add support for bind recursive #12210

merged 1 commit into from
Oct 16, 2024

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Oct 15, 2024

What I did
Add support for bind.recursive
Introduce requireMountAPI to make it more explicit we rely on bind only when options do not require to

Related issue
close #11792

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@ndeloof ndeloof requested review from a team, glours and jhrotko and removed request for a team October 15, 2024 09:05
Signed-off-by: Nicolas De Loof <[email protected]>
// NonRecursive: false, FIXME missing from model ?
opts := &mount.BindOptions{
Propagation: mount.Propagation(bind.Propagation),
CreateMountpoint: bind.CreateHostPath,
Copy link
Contributor

@jhrotko jhrotko Oct 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this always defined? Do we need to so any checking for bind.CreateHostPath?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a bool, defaults to true

@ndeloof ndeloof merged commit 82417bd into docker:main Oct 16, 2024
28 checks passed
@ndeloof ndeloof deleted the bind_recursive branch October 16, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support bind-recursive option for bind mounts
3 participants