diff options
author | umohnani8 <umohnani@redhat.com> | 2018-04-16 10:53:23 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-04-17 14:49:47 +0000 |
commit | 64497042324e9f6ff6663e3dd5c61157f4137531 (patch) | |
tree | 2e38a1ce8975437b35d188e8327767f67dfec64a /docs/podman-inspect.1.md | |
parent | 18b9f2bd10206e9b4053c9f1a736abe2866ba274 (diff) | |
download | podman-64497042324e9f6ff6663e3dd5c61157f4137531.tar.gz podman-64497042324e9f6ff6663e3dd5c61157f4137531.tar.bz2 podman-64497042324e9f6ff6663e3dd5c61157f4137531.zip |
Modify diff and inspect docs
Format the examples in podman-diff.md better.
The description for --type in the inspect docs was slightly different
from that in the inline help.
Also stated what values to use in the Go template for the --format flag.
Signed-off-by: umohnani8 <umohnani@redhat.com>
Closes: #620
Approved by: mheon
Diffstat (limited to 'docs/podman-inspect.1.md')
-rw-r--r-- | docs/podman-inspect.1.md | 12 |
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) |