Fix the order of pull

This commit is contained in:
Derek Hammer 2014-12-15 10:49:37 -08:00
parent d8e8400419
commit 7426c52f0e
2 changed files with 4 additions and 4 deletions

View File

@ -408,7 +408,7 @@ class Client(requests.Session):
def build(self, path=None, tag=None, quiet=False, fileobj=None,
nocache=False, rm=False, stream=False, timeout=None,
pull=False, custom_context=False, encoding=None):
custom_context=False, encoding=None, pull=True):
remote = context = headers = None
if path is None and fileobj is None:
raise TypeError("Either path or fileobj needs to be provided.")
@ -439,10 +439,10 @@ class Client(requests.Session):
params = {
't': tag,
'remote': remote,
'pull': pull,
'q': quiet,
'nocache': nocache,
'rm': rm
'rm': rm,
'pull': pull
}
if context is not None:

View File

@ -56,9 +56,9 @@ correct value (e.g `gzip`).
* stream (bool): Return a blocking generator you can iterate over to retrieve
build output as it happens
* timeout (int): HTTP timeout
* pull (bool): Downloads any updates to the FROM image in Dockerfiles
* 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
**Returns** (generator): A generator of the build output