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

Fix checking for ":" in project dir on Windows for Docker containers

This commit is contained in:
grossmj 2023-03-23 22:17:29 -10:00
parent 8bf5eb2754
commit d6141d4652

View File

@ -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()