Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

[17.09] back port Automatically set may_detach_mounts=1 on startup #247

Merged
merged 1 commit into from
Sep 21, 2017

Conversation

thaJeztah
Copy link
Member

back port of moby/moby#34863

This is kernel config available in RHEL7.4 based kernels that enables
mountpoint removal where the mountpoint exists in other namespaces.
In particular this is important for making this pattern work:

umount -l /some/path
rm -r /some/path

Where /some/path exists in another mount namespace.
Setting this value will prevent device or resource busy errors when
attempting to the removal of /some/path in the example.

This setting is the default, and non-configurable, on upstream kernels
since 3.15.

Signed-off-by: Brian Goff cpuguy83@gmail.com
(cherry picked from commit 83c2152)
Signed-off-by: Sebastiaan van Stijn github@gone.nl

This is kernel config available in RHEL7.4 based kernels that enables
mountpoint removal where the mountpoint exists in other namespaces.
In particular this is important for making this pattern work:

```
umount -l /some/path
rm -r /some/path
```

Where `/some/path` exists in another mount namespace.
Setting this value will prevent `device or resource busy` errors when
attempting to the removal of `/some/path` in the example.

This setting is the default, and non-configurable, on upstream kernels
since 3.15.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit 83c2152)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

ping @cpuguy83

Copy link
Contributor

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

@andrewhsu andrewhsu added this to the 17.09.0 milestone Sep 20, 2017
@vieux
Copy link
Contributor

vieux commented Sep 21, 2017

LGTM

@andrewhsu andrewhsu merged commit d86b81f into docker:17.09 Sep 21, 2017
@thaJeztah thaJeztah deleted the 17.09-may_detach_mount branch September 21, 2017 07:14
tonistiigi pushed a commit to tonistiigi/docker-ce that referenced this pull request Sep 21, 2017
Add bash completion for `service create|update --entrypoint`
Upstream-commit: 1c4d070cf5562525184ac3010ffd1f80e1bb5cc5
Component: cli
docker-jenkins pushed a commit that referenced this pull request Oct 2, 2018
Merged with https://github.com/seemethere/unir
Upstream-commit: 4756a2fba881a2240298b682703203c3768a76dc
Component: packaging
docker-jenkins pushed a commit that referenced this pull request Jun 4, 2019
[19.03 backport] backport layer store optimizations
Upstream-commit: 36f0fe6524389e9283e2d57a5ad4992a5ce72bae
Component: engine
silvin-lubecki pushed a commit to silvin-lubecki/docker-ce that referenced this pull request Feb 3, 2020
[17.09] back port Automatically set `may_detach_mounts=1` on startup
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants