mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 21:21:42 +00:00
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:
@@ -339,6 +339,7 @@ func getContainersJSON(eng *engine.Engine, version version.Version, w http.Respo
|
||||
job.Setenv("since", r.Form.Get("since"))
|
||||
job.Setenv("before", r.Form.Get("before"))
|
||||
job.Setenv("limit", r.Form.Get("limit"))
|
||||
job.Setenv("filters", r.Form.Get("filters"))
|
||||
|
||||
if version.GreaterThanOrEqualTo("1.5") {
|
||||
streamJSON(job, w, false)
|
||||
|
||||
Reference in New Issue
Block a user