mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 13:23:48 +02:00
Fix checking for ":" in project dir on Windows for Docker containers
This commit is contained in:
parent
8bf5eb2754
commit
d6141d4652
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user