forked from apptainer/singularity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinspect.info
44 lines (33 loc) · 1.29 KB
/
inspect.info
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
NAME="inspect"
SECTION="management"
SUMMARY="Display container's metadata"
USAGE="singularity [...] inspect [exec options...] <container path>"
print_help() {
cat<<EOF
This command will show you labels, environment variables, and scripts associated with the image.
INSPECT OPTIONS:
-a|--app Inspect an application specified in the container
-l|--labels Show the labels associated with the image (default)
-d|--deffile Show the Singularity recipe file that was used
to generate the image
-r|--runscript Show the runscript for the image
-t|--test Show the test script for the image
-e|--environment Show the environment settings for the image
-j|--json Print structured json instead of sections
-hf|--helpfile Inspect the runscript helpfile, if exists
EXAMPLES:
$ singularity inspect ubuntu.img
#!/bin/sh
exec /bin/bash "$@"
$ singuarity inspect --labels ubuntu.img
{
"SINGULARITY_DEFFILE_BOOTSTRAP": "docker",
"SINGULARITY_DEFFILE": "Singularity",
"SINGULARITY_DEFFILE_FROM": "ubuntu:latest",
"SINGULARITY_BOOTSTRAP_VERSION": "2.2.99"
}
For additional help, please visit our public documentation pages which are
found at:
http://singularity.lbl.gov/
EOF
}