filters, for images: start with untagged/tagged boolean

This is a new feature and flag. (replaces the suggestion of a flag for
--untagged images).
The concept is to have a syntax to filter. This begins with this
filtering for the 'images' subcommand, and at that only filtering for
whether images are untagged.
  example like: docker rmi $(docker images -q --filter 'untagged=true')

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)
Upstream-commit: 5f3812ec97f9a951bceb482fdcd355b6cbc1b113
Component: engine
This commit is contained in:
Vincent Batts
2014-02-26 17:04:11 -05:00
parent 6b5620e888
commit f90ca07ea9
6 changed files with 1678 additions and 20 deletions

View File

@ -188,6 +188,8 @@ func getImagesJSON(eng *engine.Engine, version version.Version, w http.ResponseW
job = eng.Job("images")
)
job.Setenv("filters", r.Form.Get("filters"))
// FIXME rename this parameter, to not be confused with the filters flag
job.Setenv("filter", r.Form.Get("filter"))
job.Setenv("all", r.Form.Get("all"))