docker ps: introducing filters

* starting with filtering for exit codes. `docker ps -a --filter 'exited=1'`
* API doc for filter parameter
* formatting filters for help usage
* tweaks for review

This requires https://github.com/dotcloud/docker/pull/4430

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)
This commit is contained in:
Vincent Batts
2014-08-13 09:12:33 -04:00
parent 57e0cbb991
commit 84146719d8
5 changed files with 75 additions and 1 deletions
@@ -90,6 +90,8 @@ List containers
non-running ones.
- **size** – 1/True/true or 0/False/false, Show the containers
sizes
- **filters** – a JSON encoded value of the filters (a map[string][]string)
to process on the images list.
Status Codes:
@@ -759,7 +761,7 @@ Copy files or folders of container `id`
 
- **all** – 1/True/true or 0/False/false, default false
- **filters** – a json encoded value of the filters (a map[string][]string) to process on the images list.
- **filters** – a JSON encoded value of the filters (a map[string][]string) to process on the images list.