Skip to content

Instantly share code, notes, and snippets.

@vsoch
Last active April 25, 2019 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vsoch/b906ac15c8db37b6a7300a208c2e35be to your computer and use it in GitHub Desktop.
Save vsoch/b906ac15c8db37b6a7300a208c2e35be to your computer and use it in GitHub Desktop.
All the ways you can pull a Singularity container from shub.

Ways to Pull

How do you pull, my friend? Let me count the ways!

1. Pull by Tag

$ singularity pull shub://vsoch/singularity-images:latest
 35.30 MiB / 35.30 MiB [=========================================================================================================================================] 100.00% 4.07 MiB/s 8s
111

2. Pull by Hash

$ singularity pull shub://vsoch/singularity-images:latest@a1025471b564766d08bdf2cb062c795c
 35.30 MiB / 35.30 MiB [=========================================================================================================================================] 100.00% 3.91 MiB/s 9s

Verify

$ md5sum singularity-images_latest.sif 
a1025471b564766d08bdf2cb062c795c  singularity-images_latest.sif

3. Pull by Commit

$ singularity pull shub://vsoch/singularity-images:latest@130504089d5b2b44e2788992d0de75b625da6796
 35.30 MiB / 35.30 MiB [=========================================================================================================================================] 100.00% 3.98 MiB/s 8s

4. Pull without any version

$ singularity pull shub://vsoch/singularity-images
 35.30 MiB / 35.30 MiB [=========================================================================================================================================] 100.00% 4.01 MiB/s 8s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment