mirror of
https://github.com/containers/podman.git
synced 2025-07-25 09:05:00 +08:00
Add Networks format placeholder to podman ps and pod ps
`podman ps --format {{.Networks}}` will show all connected networks for this container. For `pod ps` it will show the infra container networks. Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
@ -72,6 +72,8 @@ Valid placeholders for the Go template are listed below:
|
||||
| .Cgroup | Cgroup path of pod |
|
||||
| .Created | Creation time of pod |
|
||||
| .InfraID | Pod infra container ID |
|
||||
| .Networks | Show all networks connected to the infra container |
|
||||
|
||||
#### **--sort**
|
||||
|
||||
Sort by created, ID, name, status, or number of containers
|
||||
|
@ -80,6 +80,7 @@ Valid placeholders for the Go template are listed below:
|
||||
| .Ports | Exposed ports |
|
||||
| .Size | Size of container |
|
||||
| .Names | Name of container |
|
||||
| .Networks | Show all networks connected to the container |
|
||||
| .Labels | All the labels assigned to the container |
|
||||
| .Mounts | Volumes mounted in the container |
|
||||
|
||||
|
Reference in New Issue
Block a user