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

NFS: Support subfolder jailing without docker volume create for Clusters #81

Open
gondor opened this issue Oct 7, 2016 · 0 comments
Open

Comments

@gondor
Copy link
Member

gondor commented Oct 7, 2016

This is an addon and experimental feature to extend Issue #72.

Within clusters like Mesos we don't have the ability to use a common NFS mount and create subfolders during mount time to root the container in. This is due to the fact that Issue #72 requires us using docker volume create -d nfs --name data1 -o share=nfshost:/export -o create=true before the container is started.

Since Docker doesn't support share-opts when using docker run we are using a delimiter in this feature to support this.

For example this allows us to use a common nfs share - say nfshost:/export and create a subfolder for the new container within /export called data1. The ultimate mount would be /export/data1.

Syntax now supported:

docker run --volume-driver=nfs -v nfshost/export#data1:/data nginx

The # delimiter seperate the share and the vol name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant