From 343f2b574d8ba272e3ecd22f99ed04be1405865f Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 13 Jun 2016 21:20:29 +0200 Subject: [PATCH] Avoid loosing console port for Docker Fix #569 --- gns3server/modules/docker/docker_vm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gns3server/modules/docker/docker_vm.py b/gns3server/modules/docker/docker_vm.py index 56ba1c04..31ff5fbb 100644 --- a/gns3server/modules/docker/docker_vm.py +++ b/gns3server/modules/docker/docker_vm.py @@ -321,7 +321,7 @@ class DockerVM(BaseVM): aux = self.aux state = yield from self._get_container_state() - yield from self.close() + yield from self.reset() yield from self.create() self.console = console self.aux = aux @@ -567,7 +567,10 @@ class DockerVM(BaseVM): if not (yield from super().close()): return False + yield from self.reset() + @asyncio.coroutine + def reset(self): try: if self.console_type == "vnc": if self._x11vnc_process: