Lock docker API to 1.27

Fix https://github.com/GNS3/gns3-gui/issues/1994
This commit is contained in:
Julien Duponchelle committed 2017-04-24 17:51:55 +02:00
1 parent 8b9f22c30c
commit effbe59414
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -33,7 +33,7 @@ from gns3server.compute.docker.docker_error import DockerError, DockerHttp304Err
log = logging.getLogger(__name__)
DOCKER_MINIMUM_API_VERSION = "1.21"
DOCKER_MINIMUM_API_VERSION = "1.27"
class Docker(BaseManager):
@@ -113,7 +113,7 @@ class Docker(BaseManager):
:returns: HTTP response
"""
data = json.dumps(data)
url = "http://docker/" + path
url = "http://docker/v" + DOCKER_MINIMUM_API_VERSION + "/" + path
if timeout is None:
timeout = 60 * 60 * 24 * 31 # One month timeout