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