Skip to content
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

mount error #2

Closed
694982827 opened this issue May 31, 2017 · 3 comments
Closed

mount error #2

694982827 opened this issue May 31, 2017 · 3 comments

Comments

@694982827
Copy link

694982827 commented May 31, 2017

In my gluster server:

[root@d71ef829f16e /]#  gluster volume info

Volume Name: gv0
Type: Replicate
Volume ID: 008f9aea-2d1b-4a1b-8c4a-ea430d84bac3
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: 10.1.139.34:/gluster/brick2
Brick2: 10.1.139.35:/gluster/brick2
Options Reconfigured:
transport.address-family: inet
nfs.disable: on
[root@d71ef829f16e /]#

and in my docker node:
`docker plugin install sapk/plugin-gluster
docker volume create --driver gluster --opt voluri="10.1.139.35:008f9aea-2d1b-4a1b-8c4a-ea430d84bac3" --name test

test
docker run -v test:/mnt --rm -ti ubuntu`

and it could mount when "docker run -v test:/mnt --rm -ti ubuntu

`root@osd1:~# docker run -v test:/mnt --rm -ti ubuntu

docker: Error response from daemon: VolumeDriver.Mount: exit status 1.
See 'docker run --help'.
root@osd1:#
root@docker0:
# docker plugin ls
ID NAME DESCRIPTION ENABLED
bed64a4a4914 sapk/plugin-gluster:latest GlusterFS plugin for Docker true
root@docker0:~# docker volume ls
DRIVER VOLUME NAME
local 07cea292c645234f0f96293899e135450771e9056d133302197ffb58c3dc8d0a
sapk/plugin-gluster:latest test
`

Is there anything wrong?

@sapk
Copy link
Owner

sapk commented May 31, 2017

Sorry, I need to update the readme. It is not the Volume ID but Volume Name to used.

@694982827
Copy link
Author

@sapk
oh ,Thanks!I have changed to the name and it work well!

@sapk
Copy link
Owner

sapk commented May 31, 2017

I updated the readme. Have fun ;-)

@sapk sapk closed this as completed May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants