Singularity is setup in our cluster so that it will automatically mount
for you the directories /opt
(which contains optional applications),
/shared
(which contains your home directory, and other shared directories)
and /scratch
(which contains /scratch for your scratch files).
However these directories must already exist in your container!
So ensure they are created by including the following commands within the %setup
section of your container definition file:
%setup
mkdir -p ${SINGULARITY_ROOTFS}/opt
mkdir -p ${SINGULARITY_ROOTFS}/scratch
mkdir -p ${SINGULARITY_ROOTFS}/shared
In the Singularity documentation this is covered under the section on Bind Paths
%help
section.%post
.Do you need administrator privileges to use Singularity?
Answer:
If you already have a container (whether Singularity or Docker) ready to go, you can
use the run, shell, and import commands without root access.
If you want to build a new Singularity container image from scratch it must be
built and configured on a host where you have root access. This can be a
physical system or a system running on a virtual machine.
And of course once you have built that container image
it can be used on a system where you do not have root access as long
as Singularity has been installed there.
Can Singularity support daemon processes?
Answer:
If you start a process daemon, it will exist on your host’s network. This
means you can run a web server, or any other daemon, from within a container
and access it directly from your host.