Skip to content

Commit 21866b3

Browse files
sven1103vsoch
authored andcommitted
Add pull by commit documentation (#113)
1 parent 2ddc0f5 commit 21866b3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pages/docs/user-docs/docs-pull.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ Progress |===================================| 100.0%
8181
Done. Container is at: /tmp/vsoch-hello-world-master.img
8282
```
8383

84+
### Pull by commit
85+
You can also pull different versions of your container by using their commit id (`version`).
86+
87+
```
88+
singularity pull shub://vsoch/hello-world@42e1f04ed80217895f8c960bdde6bef4d34fab59
89+
Progress |===================================| 100.0%
90+
Done. Container is at: ./vsoch-hello-world-master.img
91+
```
92+
93+
In this example, the first build of this container will be pulled.
94+
95+
8496
## Docker
8597
Docker pull is similar (on the surface) to a Singularity Hub pull, and we would do the following:
8698

0 commit comments

Comments
 (0)