diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2021-01-09 16:54:41 +0100 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2021-01-09 19:15:43 +0100 |
commit | 38baf3d5e2bc5c1e8b216dc072ea1d3eaf5053b8 (patch) | |
tree | b471d6178b117e8ab6f287fddc8b546a04cce711 /pkg/domain/entities/container_ps.go | |
parent | 1242e7b7a612b1dcae0e09a7fd10e266d34cf9e2 (diff) | |
download | podman-38baf3d5e2bc5c1e8b216dc072ea1d3eaf5053b8.tar.gz podman-38baf3d5e2bc5c1e8b216dc072ea1d3eaf5053b8.tar.bz2 podman-38baf3d5e2bc5c1e8b216dc072ea1d3eaf5053b8.zip |
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>
Diffstat (limited to 'pkg/domain/entities/container_ps.go')
-rw-r--r-- | pkg/domain/entities/container_ps.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/domain/entities/container_ps.go b/pkg/domain/entities/container_ps.go index ff3b087ed..6709ca48a 100644 --- a/pkg/domain/entities/container_ps.go +++ b/pkg/domain/entities/container_ps.go @@ -43,6 +43,8 @@ type ListContainer struct { // Namespaces the container belongs to. Requires the // namespace boolean to be true Namespaces ListContainerNamespaces + // The network names assigned to the container + Networks []string // The process id of the container Pid int // If the container is part of Pod, the Pod ID. Requires the pod |