From 2e455037e16c83c10959bee8bac004138494b357 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 24 Mar 2016 18:35:15 +0100 Subject: [PATCH] Fix crash when you start twice the same container --- gns3server/modules/docker/docker_vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/docker/docker_vm.py b/gns3server/modules/docker/docker_vm.py index 85d74cf9..56768197 100644 --- a/gns3server/modules/docker/docker_vm.py +++ b/gns3server/modules/docker/docker_vm.py @@ -179,8 +179,8 @@ class DockerVM(BaseVM): """ path = os.path.join(self.working_dir, "etc", "network") os.makedirs(path, exist_ok=True) - os.makedirs(os.path.join(path, "if-up.d")) - os.makedirs(os.path.join(path, "if-down.d")) + os.makedirs(os.path.join(path, "if-up.d"), exist_ok=True) + os.makedirs(os.path.join(path, "if-down.d"), exist_ok=True) if not os.path.exists(os.path.join(path, "interfaces")): with open(os.path.join(path, "interfaces"), "w+") as f: