From 6c09ce710e3f10551e9edbfef0ba6a8cc894dbb1 Mon Sep 17 00:00:00 2001 From: AndrweCottrell Date: Sun, 7 Apr 2024 16:28:45 +1000 Subject: [PATCH] FIX issue https://github.com/containers/podman-compose/issues/704 - Windows fix sock not working. --- podman_compose.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index ed61c35..e14362c 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -159,7 +159,8 @@ def parse_short_mount(mount_str, basedir): # User-relative path # - ~/configs:/etc/configs/:ro mount_type = "bind" - mount_src = os.path.abspath(os.path.join(basedir, os.path.expanduser(mount_src))) + if os.name != 'nt' or (os.name == 'nt' and ".sock" not in mount_src): + mount_src = os.path.abspath(os.path.join(basedir, os.path.expanduser(mount_src))) else: # Named volume # - datavolume:/var/lib/mysql