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
Share gluster volume though volume-from #20345
Comments
We're looking into making it easier to run volume plugins in a container, but don't have a full design for that yet. Currently, installing the requirements for glusterfs on the host, and using the glusterfs volume-plugin is the recommended approach, but ymmv |
Can you provide your docker version, and a reproduction example? This should be working. |
Mounts done in a container are not, by default, shared with the host, and as such do not work with In order to share mounts with the host you need to bind-mount a host dir and mark it as shared: |
Sorry for late respone. First thank you all for comments. According to above understand i made a test on docker version: 1.10.2
But i got bellow error Then i found: which mentioned above error and your solution, but it seems still can't work in my docker host.
My docker host is RHEL7.1 3.10.0-327.4.4.el7.x86_64 (using root to execute command) Any comments? Thank you. |
Does shared volume need other setting then bellow steps described? it seems still have problem of "not a shared mount". Could you give some suggestion? Output of
Output of
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
Describe the results you received:
Describe the results you expected: Provide additional info you think is important:
|
I found the root case form this ticket, change the docker systemd "MountFlags=slave" There are another ticket which proposal of removing Anyway, the above solution met my requirement. That's very nice. Thank you all. |
Correct we have made those changes in Rawhide and will do so in rhel-7.2.4 release (docker-1.10) |
In our using scenarios we expect that there is one container in host which management of the mount different FS e.g. GlusterFS. All other application container can volume-form that container to using the Gluster volumes.
But it seems current docker did not support this. For example: a container which installed Gluster client and fuse can successfully mount the Gluster volumes. But that mount volumes can't share with host or share with other containers on that host.
There are some solutions:
1.A Docker host mount a Gluster filesystem whithout Gluster client package, Gluster client are in one container. But it seems not working since one parameter "-v /proc:/proc" failed.
https://github.com/rootfs/install-glusterfs-on-fc21
2.Docker volume plugin for GlusterFS. But it is required that Gluster client are installed on host beforehead.
https://github.com/calavera/docker-volume-glusterfs
3.K8s also have example for using glusterfs. But similarly, Gluster client shall be installed on host beforehead.
http://kubernetes.io/v1.1/examples/glusterfs/README.html
In short, i expect that in host, it is not require to install Gluster client package, but in one container which mount the gluster volume that can be share to other container.
Any suggestion, comments, or more official solution?
The text was updated successfully, but these errors were encountered: