mirror of
https://github.com/containers/podman.git
synced 2025-07-03 17:27:18 +08:00
Fix up example description of podman-inspect.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -40,7 +40,7 @@ Return JSON for the specified type. Type can be 'container', 'image', 'volume',
|
|||||||
|
|
||||||
## EXAMPLE
|
## EXAMPLE
|
||||||
|
|
||||||
Inspect the fedora image
|
Inspect the fedora image:
|
||||||
```
|
```
|
||||||
# podman inspect fedora
|
# podman inspect fedora
|
||||||
[
|
[
|
||||||
@ -122,43 +122,43 @@ Inspect the fedora image
|
|||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
Inspect the specified image for Image Name.
|
Inspect the specified image with the `ImageName` format specifier:
|
||||||
```
|
```
|
||||||
# podman inspect a04 --format "{{.ImageName}}"
|
# podman inspect a04 --format "{{.ImageName}}"
|
||||||
fedora
|
fedora
|
||||||
```
|
```
|
||||||
|
|
||||||
Inspect the specified image for GraphDriver Name.
|
Inspect the specified image for `GraphDriver` format specifier:
|
||||||
```
|
```
|
||||||
# podman inspect a04 --format "{{.GraphDriver.Name}}"
|
# podman inspect a04 --format "{{.GraphDriver.Name}}"
|
||||||
overlay
|
overlay
|
||||||
```
|
```
|
||||||
|
|
||||||
Inspect the specified image for its Size field.
|
Inspect the specified image for its `Size` format specifier:
|
||||||
```
|
```
|
||||||
# podman image inspect --format "size: {{.Size}}" alpine
|
# podman image inspect --format "size: {{.Size}}" alpine
|
||||||
size: 4405240
|
size: 4405240
|
||||||
```
|
```
|
||||||
|
|
||||||
Inspect the latest container created for its EffectiveCaps field. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
|
Inspect the latest container created for `EffectiveCaps` format specifier. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines):
|
||||||
```
|
```
|
||||||
podman container inspect --latest --format {{.EffectiveCaps}}
|
podman container inspect --latest --format {{.EffectiveCaps}}
|
||||||
[CAP_CHOWN CAP_DAC_OVERRIDE CAP_FSETID CAP_FOWNER CAP_SETGID CAP_SETUID CAP_SETFCAP CAP_SETPCAP CAP_NET_BIND_SERVICE CAP_KILL]
|
[CAP_CHOWN CAP_DAC_OVERRIDE CAP_FSETID CAP_FOWNER CAP_SETGID CAP_SETUID CAP_SETFCAP CAP_SETPCAP CAP_NET_BIND_SERVICE CAP_KILL]
|
||||||
```
|
```
|
||||||
|
|
||||||
Inspect the specified pod for the Name field.
|
Inspect the specified pod for the `Name` format specifier:
|
||||||
```
|
```
|
||||||
# podman inspect myPod --type pod --format "{{.Name}}"
|
# podman inspect myPod --type pod --format "{{.Name}}"
|
||||||
myPod
|
myPod
|
||||||
```
|
```
|
||||||
|
|
||||||
Inspect the specified volume for the Name field.
|
Inspect the specified volume for the `Name` format specifier:
|
||||||
```
|
```
|
||||||
# podman inspect myVolume --type volume --format "{{.Name}}"
|
# podman inspect myVolume --type volume --format "{{.Name}}"
|
||||||
myVolume
|
myVolume
|
||||||
```
|
```
|
||||||
|
|
||||||
Inspect the specified network for the Name field.
|
Inspect the specified network for the `Name` format specifier:
|
||||||
```
|
```
|
||||||
# podman inspect nyNetwork --type network --format "{{.name}}"
|
# podman inspect nyNetwork --type network --format "{{.name}}"
|
||||||
myNetwork
|
myNetwork
|
||||||
|
Reference in New Issue
Block a user