Skip to content

Commit cf06837

Browse files
committed
Merge branch 'pullfix' of https://github.com/glogiotatidis/docker-py into glogiotatidis-pullfix
Conflicts: docker/client.py
2 parents ed07b05 + 739d875 commit cf06837

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def attach_socket(self, container, params=None, ws=False):
306306

307307
def build(self, path=None, tag=None, quiet=False, fileobj=None,
308308
nocache=False, rm=False, stream=False, timeout=None,
309-
custom_context=False, encoding=None, pull=True,
309+
custom_context=False, encoding=None, pull=False,
310310
forcerm=False, dockerfile=None, container_limits=None,
311311
decode=False):
312312
remote = context = headers = None
@@ -353,6 +353,9 @@ def build(self, path=None, tag=None, quiet=False, fileobj=None,
353353
'dockerfile was only introduced in API version 1.17'
354354
)
355355

356+
if utils.compare_version('1.19', self._version) < 0:
357+
pull = 1 if pull else 0
358+
356359
u = self._url('/build')
357360
params = {
358361
't': tag,

0 commit comments

Comments
 (0)