From 52f0cd0eef04507d768f0c0d70c840401c58e438 Mon Sep 17 00:00:00 2001 From: sven1103 Date: Tue, 26 Sep 2017 18:12:09 +0200 Subject: [PATCH] Add pull by commit documentation --- pages/docs/user-docs/docs-pull.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pages/docs/user-docs/docs-pull.md b/pages/docs/user-docs/docs-pull.md index cb2a679..224b8e2 100644 --- a/pages/docs/user-docs/docs-pull.md +++ b/pages/docs/user-docs/docs-pull.md @@ -81,6 +81,18 @@ Progress |===================================| 100.0% Done. Container is at: /tmp/vsoch-hello-world-master.img ``` +### Pull by commit +You can also pull different versions of your container by using their commit id (`version`). + +``` +singularity pull shub://vsoch/hello-world@42e1f04ed80217895f8c960bdde6bef4d34fab59 +Progress |===================================| 100.0% +Done. Container is at: ./vsoch-hello-world-master.img +``` + +In this example, the first build of this container will be pulled. + + ## Docker Docker pull is similar (on the surface) to a Singularity Hub pull, and we would do the following: