Skip to content

Commit

Permalink
Merge branch 'pullfix' of https://github.com/glogiotatidis/docker-py
Browse files Browse the repository at this point in the history
…into glogiotatidis-pullfix

Conflicts:
	docker/client.py
  • Loading branch information
shin- committed Jun 18, 2015
2 parents ed07b05 + 739d875 commit cf06837
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def attach_socket(self, container, params=None, ws=False):

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=False,
forcerm=False, dockerfile=None, container_limits=None,
decode=False):
remote = context = headers = None
Expand Down Expand Up @@ -353,6 +353,9 @@ def build(self, path=None, tag=None, quiet=False, fileobj=None,
'dockerfile was only introduced in API version 1.17'
)

if utils.compare_version('1.19', self._version) < 0:
pull = 1 if pull else 0

u = self._url('/build')
params = {
't': tag,
Expand Down

0 comments on commit cf06837

Please sign in to comment.