Singularity: Difference between revisions
From Leo's Notes
This page was last edited on 8 February 2021, at 18:34.
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
Images that are pulled will be saved as a .sif file | 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 <code>singularity build</code> while specifying the local <code>docker-daemon</code> as the source. | |||
{{Highlight | |||
| code = # 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 | |||
| lang = terminal | |||
}} | |||
* https://support.pawsey.org.au/documentation/display/US/Basics+of+Singularity | ==See Also== | ||
* https://oit.utk.edu/hpsc/isaac-open/singularity-user-guide | |||
*https://support.pawsey.org.au/documentation/display/US/Basics+of+Singularity | |||
*https://oit.utk.edu/hpsc/isaac-open/singularity-user-guide | |||
Revision as of 18:34, 8 February 2021
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