Add rm option to docker build to remove intermediate containers

Upstream-commit: b7a3fc687ec55b68ee0cadf78d7f1eff3e531fbd
Component: engine
This commit is contained in:
Michael Crosby
2013-09-12 16:55:36 +00:00
parent 2f028893cb
commit efc88e6663
6 changed files with 23 additions and 11 deletions
@@ -976,6 +976,7 @@ Build an image from Dockerfile via stdin
:query t: repository name (and optionally a tag) to be applied to the resulting image in case of success
:query q: suppress verbose build output
:query nocache: do not use the cache when building the image
:query rm: remove intermediate containers after a successful build
:statuscode 200: no error
:statuscode 500: server error
@@ -13,6 +13,7 @@
-t="": Repository name (and optionally a tag) to be applied to the resulting image in case of success.
-q=false: Suppress verbose build output.
-no-cache: Do not use the cache when building the image.
-rm: Remove intermediate containers after a successful build
When a single Dockerfile is given as URL, then no context is set. When a git repository is set as URL, the repository is used as context