remove deprecated bind-nonrecursive option for --mount#6241
Merged
thaJeztah merged 1 commit intodocker:masterfrom Aug 6, 2025
Merged
remove deprecated bind-nonrecursive option for --mount#6241thaJeztah merged 1 commit intodocker:masterfrom
bind-nonrecursive option for --mount#6241thaJeztah merged 1 commit intodocker:masterfrom
Conversation
The `bind-nonrecursive` option was replaced with the [`bind-recursive`]
option (see [cli-4316], [cli-4671]). The option was still accepted, but
printed a deprecation warning:
bind-nonrecursive is deprecated, use bind-recursive=disabled instead
In the v29.0 release, this warning is removed, and returned as an error.
Users should use the equivalent `bind-recursive=disabled` option instead.
[`bind-recursive`]: https://docs.docker.com/engine/storage/bind-mounts/#recursive-mounts
[cli-4316]: docker#4316
[cli-4671]: docker#4671
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
vvoland
approved these changes
Aug 6, 2025
Member
Author
|
For the record; at the time we chose to "soft" deprecate this option (keep it, but warn). However, having multiple options doing the same thing is confusing, and we did mark it as deprecated, so I'm removing it in this PR. This options would be used rarely, but it also doesn't take a massive amount of code to maintain, so if there's significant outfall, we could still consider adding back a stub. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
relates to:
bind-recursive=<bool|string>and deprecatebind-nonrecursive=<bool>#4316The
bind-nonrecursiveoption was replaced with thebind-recursiveoption (see cli-4316, cli-4671). The option was still accepted, but printed a deprecation warning:In the v29.0 release, this warning is removed, and returned as an error. Users should use the equivalent
bind-recursive=disabledoption instead.- What I did
- How I did it
- How to verify it
- Human readable description for the release notes
- A picture of a cute animal (not mandatory but encouraged)