Repository navigation
Conversation
|
If i'm reading the linked issue correctly, this would close #10088 |
|
@phemmer we indeed have similar use case. |
|
We need to get a move on this, This is critical to us for docker-1.8. We are carrying a patch but k8s and openshift communities on non Red Hat Platforms need to get the rootfs to be slave not private. |
efd1036 to
fa30041
Compare
|
@rootfs Could you make this patch match the one you have for runc. |
8e8af39 to
0e593c5
Compare
|
@rhatdan here you go rootfs/runc@b68acd7 |
…ogation direction Signed-off-by: Huamin Chen <[email protected]>
|
runc PR opencontainers/runc#77 |
|
@kelseyhightower, @thockin - can we unite and get some leverage on this one? |
|
thanks @timothysc. A docker prototype that included opencontainers/runc#77 can be evaluated from here |
|
My biggest fear here is that this is a really complicated semantic which is really useful in a small set of cases. But I don't have a better answer - this is certainly better than using nsenter to jump between NSes. I suspect only 2 of the 3 modes are actually useful, but it's hard to make a case to exclude 1/3 of a kernel feature. Not sure how this applies to other Docker platforms... TL;DR +1 |
|
@icecrime is there any philosophical objection to this? It's unfortunately a bit complex, but your own example of FUSE daemons in containers is exactly right. |
|
For many filesystems that use FUSE daemons, long-running client baggage and configs are required on the host. With this patch we could containerize all of that headache and really make filesystem access portable across platforms without the setup and daemon dogma on the host. Imagine connecting to cinder shares on a host without installing complicated nova packages... Its all in a container cleanly hidden away. The host just sees a mountpoint that the container put there. HUGE +1 .. This would be an incredible feature. I beg of the docker higher powers... We have lots of exciting guides, articles, and everything else boiling around this particular design. Please merge!!!! @cpuguy83 |
|
I guess we cant technically +1 cause its not mergeable, but definetly +1 pending rebase, lets get this guy in. the value of containerizing pluggable storage for the docker ecosystem as a whole is undeniable. |
|
This is a super low-level control... but we do need something like this especially for containerizing volume plugins. I'd like the discuss the implications of this, though. So I guess the real issue is, can we solve a specific use case vs a generic option that will be abused. |
|
@cpuguy83 nice point. For your example, I think the way the patch being implemented doesn't allow people consuming directories under
|
Signed-off-by: Huamin Chen <[email protected]>
Signed-off-by: Huamin Chen <[email protected]>
|
@rootfs what's the use-case for |
|
We are preparing a new pull request for this. With everyone at Red Hat in agreement. :^) slave is for the autofs and k8s use case. Basically you want to mount a volume into a container, and then any mounts on top of that volume will show up inside the container. |
|
@rhatdan Doesn't this already happen today, assuming the daemon isn't in it's own mount namespace? |
|
@cpuguy83 I don't think containers can see new mounts propagated from host, since the rootfs propagation is private |
|
@cpuguy83 No it does not since libcontainer reverted my patch. libcontainer does a mount --make-rprivate / The change we are trying to get is basically mount --make-rslave / Which fixes the use case. We are also working on mount --make-rshared / For the SPC use case of mount client commands wanting to mount file systems onto the parents mnt namespace. (Cefs,Cluster, nfs for example) |
|
Closed, please comment on the new PR #15648 |
This is the docker part of docker-archive/libcontainer#632
It implements a rootfs mount propagation flag