1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-01 04:38:12 +00:00

Fix limit of 20 docker containers

Fix #963
This commit is contained in:
Julien Duponchelle 2017-03-28 11:54:16 +02:00
parent 42f409d5f9
commit 2564740665
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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) self._connector = aiohttp.connector.UnixConnector(self._server_url, conn_timeout=2, limit=None)
except (aiohttp.errors.ClientOSError, FileNotFoundError): except (aiohttp.errors.ClientOSError, FileNotFoundError):
raise DockerError("Can't connect to docker daemon") raise DockerError("Can't connect to docker daemon")
return self._connector return self._connector