Kaydet (Commit) e8c9e6e3 authored tarafından Joffrey F's avatar Joffrey F

Added forcerm param in Client.build

üst 73b15be0
......@@ -408,7 +408,8 @@ class Client(requests.Session):
def build(self, path=None, tag=None, quiet=False, fileobj=None,
nocache=False, rm=False, stream=False, timeout=None,
custom_context=False, encoding=None, pull=True):
custom_context=False, encoding=None, pull=True,
forcerm=False):
remote = context = headers = None
if path is None and fileobj is None:
raise TypeError("Either path or fileobj needs to be provided.")
......@@ -442,6 +443,7 @@ class Client(requests.Session):
'q': quiet,
'nocache': nocache,
'rm': rm,
'forcerm': forcerm,
'pull': pull
}
......
......@@ -59,6 +59,7 @@ build output as it happens
* custom_context (bool): Optional if using `fileobj`
* encoding (str): The encoding for a stream. Set to `gzip` for compressing
* pull (bool): Downloads any updates to the FROM image in Dockerfiles
* forcerm (bool): Always remove intermediate containers, even after unsuccessful builds
**Returns** (generator): A generator of the build output
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment