Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Singularity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IMGW
Singularity
Commits
9de56b3d
Commit
9de56b3d
authored
3 years ago
by
Michael Blaschek
Browse files
Options
Downloads
Patches
Plain Diff
Update HandsOn.md
parent
70163761
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workshop/HandsOn.md
+16
-2
16 additions, 2 deletions
workshop/HandsOn.md
with
16 additions
and
2 deletions
workshop/HandsOn.md
+
16
−
2
View file @
9de56b3d
...
...
@@ -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
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment