...
- export myimage=/sdf/group/fermi/sw/containers//fermi-centos6.20230314.sif
- Go inside the container:
- singularity shell -B /sdf $myimage
- By default, the prompt is changed to “Singularity> “. You are now in a shell and can do “ls”, “cd”, etc.
- If you run command “id”, you will see you are running as yourself.
- if you need to see SDF filesystems (Lustre), add -B /fs/ddn/sdf
- Run a command in the container:
- singularity exec -B /sdf $myimage ls -l
- singularity exec -B /sdf $myimage sh myscript.sh
- The above is usually used in batch jobs.
- to work on the scratch space in batch, add -B /lscratch
- if you need to see SDF filesystems (Lustre), add -B /fs/ddn/sdf
...