Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...