You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 -e parameters and -v volume mounts. Here's an example:
The first line says : SHARED_DIRECTORY is a root dir, and *01 to *03 are sub directories which could not set 'fsid=0'.
And some parameters in run command:
Activity
sjiveson commentedon May 7, 2018
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
-e
parameters and-v
volume mounts. Here's an example:sjiveson commentedon May 7, 2018
Your docker run command would then look something like this:
tianxiawuzhe commentedon May 8, 2018
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'.
And some parameters in run command:
Then in another container, can mount server's /nfsroot/vol1 to local dir '/home/vol_1/' like this:
Thanks again.
sjiveson commentedon May 8, 2018
You're welcome. Thanks for posting back with details that may help others.
sjiveson commentedon Nov 19, 2018
Hey. I've made some changes to help support this, please see the latest README.
qiushaocloud commentedon Jan 18, 2023
如果是多个不同目录怎么弄,比如 /nfs01 和 /nfs02