From dfcd777cbc76caf866ab44fe4fbd763184088516 Mon Sep 17 00:00:00 2001 From: Josh Horwitz Date: Fri, 15 Jul 2016 14:21:19 -0400 Subject: [PATCH] Adds container health support to docker ps filter Signed-off-by: Josh Horwitz --- docs/reference/commandline/ps.md | 2 ++ man/docker-ps.1.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/reference/commandline/ps.md b/docs/reference/commandline/ps.md index b772ad1daf..6a7d6eaad4 100644 --- a/docs/reference/commandline/ps.md +++ b/docs/reference/commandline/ps.md @@ -33,6 +33,7 @@ Options: - ancestor=([:tag]||) containers created from an image or a descendant. - is-task=(true|false) + - health=(starting|healthy|unhealthy|none) --format string Pretty-print containers using a Go template --help Print usage -n, --last int Show n last created containers (includes all states) (default -1) @@ -81,6 +82,7 @@ The currently supported filters are: * isolation (default|process|hyperv) (Windows daemon only) * volume (volume name or mount point) - filters containers that mount volumes. * network (network id or name) - filters containers connected to the provided network +* health (starting|healthy|unhealthy|none) - filters containers based on healthcheck status #### Label diff --git a/man/docker-ps.1.md b/man/docker-ps.1.md index fd6c4e78fa..d9aa39f8fd 100644 --- a/man/docker-ps.1.md +++ b/man/docker-ps.1.md @@ -38,6 +38,7 @@ the running containers. - ancestor=([:tag]||) - containers created from an image or a descendant. - volume=(|) - network=(|) - containers connected to the provided network + - health=(starting|healthy|unhealthy|none) - filters containers based on healthcheck status **--format**="*TEMPLATE*" Pretty-print containers using a Go template. @@ -141,3 +142,4 @@ June 2014, updated by Sven Dowideit August 2014, updated by Sven Dowideit November 2014, updated by Sven Dowideit February 2015, updated by André Martins +October 2016, updated by Josh Horwitz