Export the list of volumes to a env variable accessible in the container

Ref #550
This commit is contained in:
Julien Duponchelle committed 2016-06-01 11:39:42 +02:00
1 parent d3436756b2
commit ae687346f1
2 files changed
+20 -10

No files matched your search

+2
View File
@@ -294,6 +294,8 @@ class DockerVM(BaseVM):
# Give the information to the container on how many interface should be inside
params["Env"].append("GNS3_MAX_ETHERNET=eth{}".format(self.adapters - 1))
# Give the information to the container the list of volume path mounted
params["Env"].append("GNS3_VOLUMES={}".format(":".join(self._volumes)))
if self._environment:
params["Env"] += [e.strip() for e in self._environment.split("\n")]