summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2020-12-22 09:15:28 -0600
committerbaude <bbaude@redhat.com>2020-12-22 09:40:39 -0600
commitc50c75419b80791d6dd086ced608c41b2f3d96b6 (patch)
tree5c09faf305f4073f89a302d7c30a9019d2e99878 /pkg/api
parent182646b01a4544902c9fdf9326889a0ced7d9a8e (diff)
downloadpodman-c50c75419b80791d6dd086ced608c41b2f3d96b6.tar.gz
podman-c50c75419b80791d6dd086ced608c41b2f3d96b6.tar.bz2
podman-c50c75419b80791d6dd086ced608c41b2f3d96b6.zip
add pod filter for ps
adds the ability to filter containers based on the filter "pod". the value can be a pod name or its full or partial id. Fixes: #8512 Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/server/register_containers.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/server/register_containers.go b/pkg/api/server/register_containers.go
index 870c6a90c..b80dea545 100644
--- a/pkg/api/server/register_containers.go
+++ b/pkg/api/server/register_containers.go
@@ -690,6 +690,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
// - `label`=(`key` or `"key=value"`) of an container label
// - `name=<name>` a container's name
// - `network`=(`<network id>` or `<network name>`)
+ // - `pod`=(`<pod id>` or `<pod name>`)
// - `publish`=(`<port>[/<proto>]` or `<startport-endport>/[<proto>]`)
// - `since`=(`<container id>` or `<container name>`)
// - `status`=(`created`, `restarting`, `running`, `removing`, `paused`, `exited` or `dead`)