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. Creates the Docker container.
""" """
if ":" in self.working_dir: if ":" in os.path.splitdrive(self.working_dir)[1]:
raise DockerError("Cannot create a Docker container with a project name containing a colon character (':')") raise DockerError("Cannot create a Docker container with a project directory containing a colon character (':')")
try: try:
image_infos = await self._get_image_information() image_infos = await self._get_image_information()