Repository navigation
Conversation
|
|
Signed-off-by: Huamin Chen <[email protected]>
|
I'm trying to mount a device from within a container that could be shared with other containers. Using some custom code to do this is also an option (like |
|
@fgrzadkowski If you want to try |
|
@rootfs IIUC glusterfs mounts that happens within your super-privileged container will be caught and then executed in hosts mount namespace, right? Does it also work if docker (1.7) sets rootfs propagation flag to private? Can this be generalized to any mount syscall that happens within this super-privileged container? |
|
@fgrzadkowski yes, It should work for other mount too if you remove this line |
|
What's the ETA for this PR to be merged and released? |
|
Any ETA for this PR? |
|
@fgrzadkowski really need it for docker 1.9 |
|
To be honest I'm not familiar with docker roadmap. When docker 1.9 should be released? |
|
+1 This would be insanely help for us over at Pachyderm. |
|
Yes +1, although not really any more weight since @jdoliner and I need it for the same thing :) |
|
USER POLL The best way to get notified when there are changes in this discussion is by clicking the Subscribe button in the top right. The people listed below have appreciated your meaningfull discussion with a random +1: |
|
+1 |
1 similar comment
|
+1 |
|
I just pushed a new set of patches to my runc PR. That needs to get merged before this we make changes to docker to make use of those new runc features (rootfsPropagation). |
|
An option to provide a way to set this would be very useful. There are users out there who've had problems whenever the default mount propagation was changed. The private mount propagation was set as the default last year (from what I recall) to improve performance, but some have reported problems with the visibility of their mounts. I don't see how having this option would hurt, especially since it lets everyone get exactly what they need for their use cases. |
|
opencontainers/runc#208 is now merged. |
|
I have couple of docker patches which make use of new config.RootPropagation field of runc/libcontainer. I will clean them up soon and post. And also compare with these patches and see what is needed and what's not. |
|
As runc implementation has changed from last time, I created another PR for this issue. New patches are based on newly merged runc patches. |
This is to replace previous pull request #14097. It currently depends on unmerged libcontainer patch from opencontainers/runc#208
Configure rootfs mount propagation through
--rootmountflag:To set the rootfs mount propagation to shared:
docker run --rootmount=container_shared fedoraTo set the rootfs mount propagation to private:
docker run --rootmount=container_private fedoraTo set the rootfs mount propagation to slave:
docker run --rootmount=container_slave fedoraA sample output of
--rootmount=container_sharedisA sample output of
--rootmount=container_slaveisUse cases for different propagation modes are