summaryrefslogtreecommitdiff
path: root/docs/podman-inspect.1.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/podman-inspect.1.md')
-rw-r--r--docs/podman-inspect.1.md12
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/podman-inspect.1.md b/docs/podman-inspect.1.md
index d5996cdf7..1c83485c1 100644
--- a/docs/podman-inspect.1.md
+++ b/docs/podman-inspect.1.md
@@ -17,11 +17,12 @@ unspecified type. If a format is specified, the given template will be executed
**--type, t="TYPE"**
-Return data on items of the specified type. Type can be 'container', 'image' or 'all' (default: all)
+Return JSON for the specified type. Type can be 'container', 'image' or 'all' (default: all)
**--format, -f="FORMAT"**
-Format the output using the given Go template
+Format the output using the given Go template.
+The keys of the returned JSON can be used as the values for the --format flag (see examples below).
**--latest, -l**
Instead of providing the container name or ID, use the last created container. If you use methods other than Podman
@@ -87,10 +88,15 @@ fedora
```
```
-$ sudo podman inspect a04 --format "{{.GraphDriver.Name}}"
+# podman inspect a04 --format "{{.GraphDriver.Name}}"
overlay
```
+```
+# podman inspect --format "size: {{.Size}}" alpine
+size: 4405240
+```
+
## SEE ALSO
podman(1)