The Wayback Machine - https://web.archive.org/web/20201024151008/https://github.com/hpcng/singularity/issues/3467
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

Documentation of -S and -W are meaningless #3467

Open
EvanTheB opened this issue May 1, 2019 · 1 comment
Open

Documentation of -S and -W are meaningless #3467

EvanTheB opened this issue May 1, 2019 · 1 comment

Comments

@EvanTheB
Copy link

@EvanTheB EvanTheB commented May 1, 2019

-S, --scratch strings include a scratch directory within the container that is linked to a temporary dir (use -W to force location)
-W, --workdir string working directory to be used for /tmp, /var/tmp and $HOME (if -c/--contain was also used)

I can only find the above description of these settings. (man page, --help, and readthedocs, https://www.sylabs.io/guides/3.2/user-guide/cli/singularity_run.html#singularity-run).

What is a "scratch directory"?
What is a "temporary dir"?
How can one 'working directory' be used for all of "/tmp, /var/tmp and $HOME"?

What does -S do without -W?
What does -W do without -c?

@EvanTheB EvanTheB changed the title Documentation of -S and -W is meaningless Documentation of -S and -W are meaningless May 1, 2019
@al3x609
Copy link

@al3x609 al3x609 commented May 1, 2019

e.g /scratch mount directory option is made for cluster environments where /scratch is mount point for the nfs with the same name for big storage devices or infiniband networks.

  • working directory is about of change the default behavior at the moment of mount directories from host OS. this replace the standard mount points for a preferred temporal directory, this can help to keep isolate environment inside the containers.
    these options exist because the applications need write some "temporal" files to disk and if you need keep this file after "exit" of the container.

  • -c option is a shortcut for isolate the container and mount only the minimal requirements.
    use minimal /dev and empty other directories (e.g. /tmp and $HOME) instead of sharing filesystems from your host

the above is only a little interpretation from a singularity user,
I appreciate opinions from developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.