Merge pull request #905 from acotty/main

FIX issue https://github.com/containers/podman-compose/issues/704 - Windows fix sock not working.
This commit is contained in:
Muayyad Alsadi 2024-04-07 12:43:43 +03:00 committed by GitHub
commit 9a5b43907f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -159,6 +159,7 @@ def parse_short_mount(mount_str, basedir):
# User-relative path # User-relative path
# - ~/configs:/etc/configs/:ro # - ~/configs:/etc/configs/:ro
mount_type = "bind" mount_type = "bind"
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))) mount_src = os.path.abspath(os.path.join(basedir, os.path.expanduser(mount_src)))
else: else:
# Named volume # Named volume