diff options
author | Giorgos Logiotatidis <seadog@sealabs.net> | 2015-06-01 20:22:46 +0300 |
---|---|---|
committer | Giorgos Logiotatidis <seadog@sealabs.net> | 2015-06-01 23:18:27 +0300 |
commit | 739d8758540c19c4d05c9378aed33244a6b9dac6 (patch) | |
tree | 567dc067def7ae445e9cf0b2a9b1452fef1c680f | |
parent | fd1722591b05602ce30b9d5c7a49fc8ad8964e89 (diff) | |
download | docker-py-739d8758540c19c4d05c9378aed33244a6b9dac6.tar.gz |
Fix pull parameter for docker server version < 1.7.
-rw-r--r-- | docker/client.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/client.py b/docker/client.py index f87e40c..242f955 100644 --- a/docker/client.py +++ b/docker/client.py @@ -352,6 +352,12 @@ class Client(requests.Session): 'dockerfile was only introduced in API version 1.17' ) + # Docker server 1.6 only supports values 1 and 0 for pull + # parameter. This was later fixed to support a wider range of + # values, including true / false. + # See also https://github.com/docker/docker/issues/13631 + pull = 1 if pull else 0 + u = self._url('/build') params = { 't': tag, |