tldr/pages/common/singularity.md

28 lines
724 B
Markdown
Raw Normal View History

2018-01-12 11:43:07 +00:00
# singularity
> Manage Singularity containers and images.
- Download a remote image from Sylabs Cloud:
2018-01-12 11:43:07 +00:00
`singularity pull --name {{image.sif}} {{library://godlovedc/funny/lolcow:latest}}`
2018-01-12 11:43:07 +00:00
- Rebuild a remote image using latest Singularity image format:
`singularity build {{image.sif}} {{docker://godlovedc/lolcow}}`
2018-01-12 11:43:07 +00:00
- Start a container from an image and get a shell inside of it:
`singularity shell {{image.sif}}`
2018-01-12 11:43:07 +00:00
- Start a container from an image and run a command:
`singularity exec {{image.sif}} {{command}}`
2018-01-12 11:43:07 +00:00
- Start a container from an image and execute the internal runscript:
`singularity run {{image.sif}}`
2018-01-12 11:43:07 +00:00
- Build a singularity image from a recipe file:
`sudo singularity build {{image.sif}} {{recipe}}`