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

Default NFS export/mount for plugin? #2

Open
prologic opened this issue Jun 28, 2017 · 2 comments
Open

Default NFS export/mount for plugin? #2

prologic opened this issue Jun 28, 2017 · 2 comments

Comments

@prologic
Copy link

Is this something we can do; e.g:

$ docker plugin install yzlin/nfs src=10.0.0.7:/mnt/data/docker
Plugin "yzlin/nfs" is requesting the following privileges:
 - network: [host]
 - capabilities: [CAP_SYS_ADMIN]
Do you grant the above permissions? [y/N] y
latest: Pulling from yzlin/nfs
03f6df412c13: Download complete
Digest: sha256:d2d423796ef6acc82b7d840faeb69cc125b1a9362110a401e937ec64c8aed5a0
Status: Downloaded newer image for yzlin/nfs:latest
Error response from daemon: setting "src" not found in the plugin configuration

And then we can do things like:

docker volume create --volume-driver yzlin/nfs some_named_volume

Or use volume:driver: ... in Stackfiles (docker stack deploy)?

@yzlin
Copy link
Owner

yzlin commented Jun 30, 2017

The src option is for volume create. It means you can install the plugin once, and create multiple nfs volumes with different NFS src.

docker plugin install yzlin/nfs
docker volume create -d yzlin/nfs -o src=user@host:/path/to/nfs nfsvol

I haven't try it on docker stack. Not sure if it's working.

@prologic
Copy link
Author

prologic commented Jun 30, 2017 via email

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