mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-20 05:17:56 +00:00
parent
82f1ab2be2
commit
b8ee8d69c8
@ -67,7 +67,7 @@ class Docker(BaseManager):
|
|||||||
if not sys.platform.startswith("linux"):
|
if not sys.platform.startswith("linux"):
|
||||||
raise DockerError("Docker is supported only on Linux")
|
raise DockerError("Docker is supported only on Linux")
|
||||||
try:
|
try:
|
||||||
self._connector = aiohttp.connector.UnixConnector(self._server_url, conn_timeout=2, limit=None)
|
self._connector = aiohttp.connector.UnixConnector(self._server_url, limit=None)
|
||||||
except (aiohttp.ClientOSError, FileNotFoundError):
|
except (aiohttp.ClientOSError, FileNotFoundError):
|
||||||
raise DockerError("Can't connect to docker daemon")
|
raise DockerError("Can't connect to docker daemon")
|
||||||
return self._connector
|
return self._connector
|
||||||
|
Loading…
Reference in New Issue
Block a user