Singularity is a utility that can run containers without requiring any elevated privileges.
Cheat sheet[edit | edit source]
|Pulling images from docker hub|
|Running a container|
|Exec a command instead of runscript|
Tasks[edit | edit source]
Pulling docker images[edit | edit source]
singularity pull pulls from:
Images that are pulled will be saved as a
.sif file. If a tag was provided, the tag will be part of the output filename.
Building singularity image from Dockerfile[edit | edit source]
You cannot build Dockerfiles in Singularity. You can however, build the Dockerfile with Docker as usual, then convert the local docker image into a singularity image file using
singularity build while specifying the local
docker-daemon as the source.
# docker pull quay.io/singularity/singularity # docker run --rm -ti -v /tmp:/tmp quay.io/singularity/singularity build /tmp/output.sif docker-daemon://input:latest