tldr/pages/common/singularity.md

28 lines
725 B
Markdown
Raw Permalink 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 the latest Singularity image format:
2018-01-12 11:43:07 +00:00
`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 it:
2018-01-12 11:43:07 +00:00
`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}}`