Skip to content
Snippets Groups Projects
Commit 9de56b3d authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

Update HandsOn.md

parent 70163761
Branches
No related tags found
No related merge requests found
......@@ -293,8 +293,22 @@ In order to include host paths into your container use the `SINGULARITY_BIND` va
e.g.
```bash
# Binding /data on host to /mnt inside
singularity exec --bind /data:/mnt my_container.sif ls /mnt
# Directory does not exist by default
singularity exec my_container.sif ls /data
ls: cannot access '/data': No such file or directory
# Binding /data on host to /data inside
singularity exec --bind /data:/data my_container.sif ls /data
log.txt
```
or using the environment variables:
```bash
# on the HOST system
export SINGULARITY_BIND=/data:/data
# execute singularity with no --bind options
singularity exec my_container.sif ls /data
log.txt
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment