Singularity

From Leo's Notes
Revision as of 18:34, 8 February 2021 by Leo (talk | contribs)
This page was last edited on 8 February 2021, at 18:34.


Tasks

Pulling docker images

singularity pull pulls from:

  • docker:// docker hub
  • shub:// Singularity hub

Images that are pulled will be saved as a .sif file

Building singularity image from Dockerfile

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

See Also