diff --git a/gns3server/compute/docker/__init__.py b/gns3server/compute/docker/__init__.py index 37506393..72a8b692 100644 --- a/gns3server/compute/docker/__init__.py +++ b/gns3server/compute/docker/__init__.py @@ -166,10 +166,10 @@ class Docker(BaseManager): """ url = "http://docker/v" + DOCKER_MINIMUM_API_VERSION + "/" + path - connection = yield from aiohttp.ws_connect(url, - connector=self.connector(), - origin="http://docker", - autoping=True) + connection = yield from self._session.ws_connect(url, + connector=self.connector(), + origin="http://docker", + autoping=True) return connection @locked_coroutine