From d6141d4652a91c75e2dbead11f6a25e04979326d Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 23 Mar 2023 22:17:29 -1000 Subject: [PATCH] Fix checking for ":" in project dir on Windows for Docker containers --- gns3server/compute/docker/docker_vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/compute/docker/docker_vm.py b/gns3server/compute/docker/docker_vm.py index cf1ef201..79bdb128 100644 --- a/gns3server/compute/docker/docker_vm.py +++ b/gns3server/compute/docker/docker_vm.py @@ -323,8 +323,8 @@ class DockerVM(BaseNode): Creates the Docker container. """ - if ":" in self.working_dir: - raise DockerError("Cannot create a Docker container with a project name containing a colon character (':')") + if ":" in os.path.splitdrive(self.working_dir)[1]: + raise DockerError("Cannot create a Docker container with a project directory containing a colon character (':')") try: image_infos = await self._get_image_information()