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

Check if GNS3 has access to all docker resssources

Ref #702
This commit is contained in:
Julien Duponchelle 2016-10-04 21:14:19 +02:00
parent 4b4053dc2b
commit 5a7f5d2950
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -200,7 +200,10 @@ class DockerVM(BaseNode):
""" """
:returns: Return the path that we need to map to local folders :returns: Return the path that we need to map to local folders
""" """
binds = ["{}:/gns3:ro".format(get_resource("compute/docker/resources"))] ressources = get_resource("compute/docker/resources")
if not os.path.exists(ressources):
raise DockerError("{} is missing can't start Docker containers".format(ressources))
binds = ["{}:/gns3:ro".format(ressources)]
# We mount our own etc/network # We mount our own etc/network
network_config = self._create_network_config() network_config = self._create_network_config()