mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
make podman pod inspect output a json array
Just like all the other inspect commands that accept multiple args we should just make podman pod inspect output a json array. This makes the code more consistent and removes the extra workaround which was needed before to support this. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -62,31 +62,32 @@ Valid placeholders for the Go template are listed below:
|
||||
## EXAMPLE
|
||||
```
|
||||
# podman pod inspect foobar
|
||||
{
|
||||
|
||||
"Id": "3513ca70583dd7ef2bac83331350f6b6c47d7b4e526c908e49d89ebf720e4693",
|
||||
"Name": "foobar",
|
||||
"Labels": {},
|
||||
"CgroupParent": "/libpod_parent",
|
||||
"CreateCgroup": true,
|
||||
"Created": "2018-08-08T11:15:18.823115347-05:00"
|
||||
"State": "created",
|
||||
"Hostname": "",
|
||||
"SharedNamespaces": [
|
||||
"uts",
|
||||
"ipc",
|
||||
"net"
|
||||
]
|
||||
"CreateInfra": false,
|
||||
"InfraContainerID": "1020dd70583dd7ff2bac83331350f6b6e007de0d026c908e49d89ebf891d4699"
|
||||
"CgroupPath": ""
|
||||
"Containers": [
|
||||
{
|
||||
"id": "d53f8bf1e9730281264aac6e6586e327429f62c704abea4b6afb5d8a2b2c9f2c",
|
||||
"state": "configured"
|
||||
}
|
||||
]
|
||||
}
|
||||
[
|
||||
{
|
||||
"Id": "3513ca70583dd7ef2bac83331350f6b6c47d7b4e526c908e49d89ebf720e4693",
|
||||
"Name": "foobar",
|
||||
"Labels": {},
|
||||
"CgroupParent": "/libpod_parent",
|
||||
"CreateCgroup": true,
|
||||
"Created": "2018-08-08T11:15:18.823115347-05:00"
|
||||
"State": "created",
|
||||
"Hostname": "",
|
||||
"SharedNamespaces": [
|
||||
"uts",
|
||||
"ipc",
|
||||
"net"
|
||||
]
|
||||
"CreateInfra": false,
|
||||
"InfraContainerID": "1020dd70583dd7ff2bac83331350f6b6e007de0d026c908e49d89ebf891d4699"
|
||||
"CgroupPath": ""
|
||||
"Containers": [
|
||||
{
|
||||
"id": "d53f8bf1e9730281264aac6e6586e327429f62c704abea4b6afb5d8a2b2c9f2c",
|
||||
"state": "configured"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
## SEE ALSO
|
||||
|
Reference in New Issue
Block a user