Bump docker Python SDK version -> 2.4.2

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2017-06-28 14:31:59 -07:00 committed by Joffrey F
parent b4eaddf984
commit 5ee7aacca0
3 changed files with 23 additions and 19 deletions

View File

@ -295,6 +295,7 @@ class ServicePort(namedtuple('_ServicePort', 'target published protocol mode ext
if not isinstance(spec, dict):
result = []
try:
for k, v in build_port_bindings([spec]).items():
if '/' in k:
target, proto = k.split('/', 1)
@ -313,6 +314,9 @@ class ServicePort(namedtuple('_ServicePort', 'target published protocol mode ext
result.append(
cls(target, pub, proto, None, None)
)
except ValueError as e:
raise ConfigurationError(str(e))
return result
return [cls(

View File

@ -2,7 +2,7 @@ PyYAML==3.11
backports.ssl-match-hostname==3.5.0.1; python_version < '3'
cached-property==1.2.0
colorama==0.3.7
docker==2.3.0
docker==2.4.2
dockerpty==0.4.1
docopt==0.6.1
enum34==1.0.4; python_version < '3.4'

View File

@ -37,7 +37,7 @@ install_requires = [
'requests >= 2.6.1, != 2.11.0, < 2.12',
'texttable >= 0.8.1, < 0.9',
'websocket-client >= 0.32.0, < 1.0',
'docker >= 2.3.0, < 3.0',
'docker >= 2.4.2, < 3.0',
'dockerpty >= 0.4.1, < 0.5',
'six >= 1.3.0, < 2',
'jsonschema >= 2.5.1, < 3',