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

Avoid loosing console port for Docker

Fix #569
This commit is contained in:
Julien Duponchelle 2016-06-13 21:20:29 +02:00
parent 016c3e515b
commit 343f2b574d
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -321,7 +321,7 @@ class DockerVM(BaseVM):
aux = self.aux aux = self.aux
state = yield from self._get_container_state() state = yield from self._get_container_state()
yield from self.close() yield from self.reset()
yield from self.create() yield from self.create()
self.console = console self.console = console
self.aux = aux self.aux = aux
@ -567,7 +567,10 @@ class DockerVM(BaseVM):
if not (yield from super().close()): if not (yield from super().close()):
return False return False
yield from self.reset()
@asyncio.coroutine
def reset(self):
try: try:
if self.console_type == "vnc": if self.console_type == "vnc":
if self._x11vnc_process: if self._x11vnc_process: