Fix the docker aux port is lost after an update

Fix https://github.com/GNS3/gns3-gui/issues/1155
This commit is contained in:
Julien Duponchelle committed 2016-04-05 16:33:40 +02:00
1 parent 36dbcfa7f6
commit 2651a48102
2 files changed
+4

No files matched your search

+2
View File
@@ -269,11 +269,13 @@ class DockerVM(BaseVM):
"""
# We need to save the console and state and restore it
console = self.console
aux = self.aux
state = yield from self._get_container_state()
yield from self.close()
yield from self.create()
self.console = console
self.aux = aux
if state == "running":
yield from self.start()