Fix docker console port lost during update

Fix https://github.com/GNS3/gns3-gui/issues/1026
This commit is contained in:
Julien Duponchelle committed 2016-02-12 16:38:16 +01:00
1 parent 85b9620953
commit 01e2fcf225
2 files changed
+7

No files matched your search

+3
View File
@@ -184,8 +184,11 @@ class DockerVM(BaseVM):
"""
Destroy an recreate the container with the new settings
"""
# We need to save the console port and restore it
console = self.console
yield from self.remove()
yield from self.create()
self.console = console
@asyncio.coroutine
def start(self):