Do not overwrites persistent Docker volumes. Fixes #2358.

This commit is contained in:
grossmj committed 2017-12-17 22:35:26 +01:00
1 parent 3e3e1df051
commit 630afc5469
2 files changed
+10 -9

No files matched your search

+1
View File
@@ -236,6 +236,7 @@ class DockerVM(BaseNode):
"""
path = os.path.join(self.working_dir, "etc", "network")
os.makedirs(path, exist_ok=True)
open(os.path.join(path, ".gns3_perms"), 'a').close()
os.makedirs(os.path.join(path, "if-up.d"), exist_ok=True)
os.makedirs(os.path.join(path, "if-down.d"), exist_ok=True)
os.makedirs(os.path.join(path, "if-pre-up.d"), exist_ok=True)