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

pull/2219/head
grossmj 1 year ago
parent 8bf5eb2754
commit d6141d4652

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

Loading…
Cancel
Save