Add delay after starting a Docker container and adding connections in uBridge. Ref #2522

This commit is contained in:
grossmj 2025-04-18 13:50:20 +07:00
parent d06f93e772
commit ca34053125
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

View File

@ -522,6 +522,7 @@ class DockerVM(BaseNode):
await self._clean_servers()
await self.manager.query("POST", "containers/{}/start".format(self._cid))
await asyncio.sleep(0.5) # give the Docker container some time to start
self._namespace = await self._get_namespace()
await self._start_ubridge(require_privileged_access=True)