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
How to create multi SHARED_DIRECTORY? #13
Comments
Hey @tianxiawuzhe, No problem. You'll want to edit the confd/tmpl/exports.tmpl file and add one or more additional lines, with each one using a dedicated environment variable unique from SHARED_DIRECTORY. For example: SHARED_DIRECTORY_2 and SHARED_DIRECTORY_3. Then simply feed in your their values via additional
|
Your docker run command would then look something like this:
|
Thank you very much. My code like this in confd/tmpl/exports.tmpl:
The first line says : SHARED_DIRECTORY is a root dir, and *01 to *03 are sub directories which could not set 'fsid=0'.
Then in another container, can mount server's /nfsroot/vol1 to local dir '/home/vol_1/' like this:
Thanks again. |
You're welcome. Thanks for posting back with details that may help others. |
Hey. I've made some changes to help support this, please see the latest README. |
如果是多个不同目录怎么弄,比如 /nfs01 和 /nfs02 |
I'm sorry to bother you.
I want to create more than one share directory.
How can i share multi directories in one docker container ?
The text was updated successfully, but these errors were encountered: