diff --git a/gns3server/modules/docker/__init__.py b/gns3server/modules/docker/__init__.py index c54bfc9c..48216050 100644 --- a/gns3server/modules/docker/__init__.py +++ b/gns3server/modules/docker/__init__.py @@ -49,8 +49,8 @@ class Docker(BaseManager): if not self._connected: try: self._connector = aiohttp.connector.UnixConnector(self._server_url) - yield from self.query("GET", "info") self._connected = True + yield from self.query("GET", "info") except (aiohttp.errors.ClientOSError, FileNotFoundError): self._connected = False raise DockerError("Can't connect to docker daemon")