cc_staff
156
edits
(Added SINGULARITY_TMPDIR=/scratch/$USER to example commands to ensure building images on clusters will not run out of RAM.) |
(Undoing previous edits.) |
||
Line 58: | Line 58: | ||
[https://singularity-hub.org/ Singularity Hub] provides a search interface for pre-built images. Suppose you find one you want to use, for instance [https://singularity-hub.org/collections/543 Ubuntu], | [https://singularity-hub.org/ Singularity Hub] provides a search interface for pre-built images. Suppose you find one you want to use, for instance [https://singularity-hub.org/collections/543 Ubuntu], | ||
then you would download the image by running: | then you would download the image by running: | ||
<source lang="console">$ | <source lang="console">$ singularity pull shub://singularityhub/ubuntu</source> | ||
===Creating an image using Docker Hub=== <!--T:16--> | ===Creating an image using Docker Hub=== <!--T:16--> | ||
Line 68: | Line 68: | ||
Suppose the Docker Hub URL for a container you want is <tt>docker://ubuntu</tt>, | Suppose the Docker Hub URL for a container you want is <tt>docker://ubuntu</tt>, | ||
then you would download the container by running: | then you would download the container by running: | ||
<source lang="console">$ | <source lang="console">$ singularity pull docker://ubuntu</source> | ||
===Creating a tarball of your own Linux system=== <!--T:19--> | ===Creating a tarball of your own Linux system=== <!--T:19--> | ||
Line 86: | Line 86: | ||
<source lang="console">$ sudo singularity build my-image.simg my-system.tar</source> | <source lang="console">$ sudo singularity build my-image.simg my-system.tar</source> | ||
if you are using your own system, or, | if you are using your own system, or, | ||
<source lang="console">$ | <source lang="console">$ singularity build my-image.simg my-system.tar</source> | ||
if you are using a Compute Canada system. | if you are using a Compute Canada system. | ||