From 8b7209ea78dca26e40fae658dc408591c68171a2 Mon Sep 17 00:00:00 2001 From: Bernhard Ehlers Date: Tue, 16 May 2017 12:36:38 +0200 Subject: [PATCH] Use docker version in error message of outdated docker installation --- gns3server/compute/docker/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/compute/docker/__init__.py b/gns3server/compute/docker/__init__.py index 460472c3..b8038152 100644 --- a/gns3server/compute/docker/__init__.py +++ b/gns3server/compute/docker/__init__.py @@ -34,6 +34,7 @@ log = logging.getLogger(__name__) DOCKER_MINIMUM_API_VERSION = "1.25" +DOCKER_MINIMUM_VERSION = "1.9" class Docker(BaseManager): @@ -60,7 +61,7 @@ class Docker(BaseManager): self._connected = False raise DockerError("Can't connect to docker daemon") if parse_version(version["ApiVersion"]) < parse_version(DOCKER_MINIMUM_API_VERSION): - raise DockerError("Docker API version is {}. GNS3 requires a minimum API version of {}".format(version["ApiVersion"], DOCKER_MINIMUM_API_VERSION)) + raise DockerError("Docker version is {}. GNS3 requires a minimum version of {}".format(version["Version"], DOCKER_MINIMUM_VERSION)) def connector(self): if self._connector is None or self._connector.closed: