-
Notifications
You must be signed in to change notification settings - Fork 59
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
Can't mount volume #19
Comments
https://github.com/trajano/docker-volume-plugins/tree/master/glusterfs-volume-plugin#just-the-name the name should not be |
I don't understand. In this example: https://github.com/trajano/docker-volume-plugins/tree/master/glusterfs-volume-plugin#testing-outside-the-swarm you do exactly this, don't you? |
The approach you specified assumes that you have a glusterfs volume called In your case you're using the volume name of The glusterfs volumes need to exist before connecting to it using this plugin. |
Oh, so I need to create the volume? OK, I will try that then. |
So, I've created the volume and started it: gluster volume create test glusterfs0:/srv/glusterfs/brick0/test glusterfs1:/srv/glusterfs/brick0/test glusterfs2:/srv/glusterfs/brick0/test
gluster volume start test
# list it (it shows)
gluster volume list
# try to mount it into docker
docker run -it -v test:/mnt alpine I get these errors (journald)
On the other hand, this works: Any ideas? |
the resulting command should be something like (I changed the mount point so you can test)
FYI the plugin still uses glusterfs 3.x |
Thank you for the personalized example. I am using 6.0-1... :S In any case, I did the following an dit didn't work either: # undo
docker volume rm trajano
docker plugin disable trajano/glusterfs-volume-plugin
docker plugin rm trajano/glusterfs-volume-plugin
# do
docker plugin install trajano/glusterfs-volume-plugin --grant-all-permissions
docker plugin enable trajano/glusterfs-volume-plugin
docker volume create -d trajano/glusterfs-volume-plugin --opt servers=glusterfs0,glusterfs1,glusterfs2 trajano
docker run -it -v trajano:/mnt alpine It didn't work. Will try the glusterfs -s command to see if it works. Sorry for all the trouble. I don't think I should bother you anymore. |
I am running GlusterFS 6.5 and can confirm that volume creating and mounting works - at least on the command line. WORKS $ docker volume create -d glusterfs:latest lei01/export
$ docker run -it -v lei01/export alpine DOES NOT WORK version: "3.4"
services:
foo:
image: alpine
command: ping localhost
networks:
- net
volumes:
- vol1:/tmp
deploy:
placement:
constraints: [node.role == worker]
networks:
net:
driver: overlay
volumes:
vol1:
driver: glusterfs
name: "lei01/export" Then I always get the Any idea? |
Same issue here |
The plugin is using glusterfs 3.x so it may not work with newer versions of Gluster. |
I tried the following in a vanilla centos7:
If fails like this:
And the logs say:
Also, check this out:
The text was updated successfully, but these errors were encountered: