mirror of
https://github.com/containers/podman.git
synced 2025-05-20 16:47:39 +08:00
Merge pull request #21710 from rhatdan/docs21
[CI:DOCS] Fix up example description of podman-inspect.1.md.in
This commit is contained in:
@ -40,7 +40,7 @@ Return JSON for the specified type. Type can be 'container', 'image', 'volume',
|
||||
|
||||
## EXAMPLE
|
||||
|
||||
Inspect the fedora image
|
||||
Inspect the fedora image:
|
||||
```
|
||||
# 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}}"
|
||||
fedora
|
||||
```
|
||||
|
||||
Inspect the specified image for GraphDriver Name.
|
||||
Inspect the specified image for `GraphDriver` format specifier:
|
||||
```
|
||||
# podman inspect a04 --format "{{.GraphDriver.Name}}"
|
||||
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
|
||||
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}}
|
||||
[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}}"
|
||||
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}}"
|
||||
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}}"
|
||||
myNetwork
|
||||
|
Reference in New Issue
Block a user