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

Fix start all create error if a docker container is already running

Fix #839
This commit is contained in:
Julien Duponchelle 2016-12-16 16:19:23 +01:00
parent 3259ec1220
commit 8f6d25cc2b
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -344,6 +344,8 @@ class DockerVM(BaseNode):
state = yield from self._get_container_state() state = yield from self._get_container_state()
if state == "paused": if state == "paused":
yield from self.unpause() yield from self.unpause()
elif state == "running":
return
else: else:
yield from self._clean_servers() yield from self._clean_servers()