Skip to content

Commit

Permalink
support volume mapping into the home of a container
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Mar 9, 2024
1 parent 121b5f6 commit 64d8be6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ def parse_short_mount(mount_str, basedir):
elif len(mount_a) == 2:
mount_src, mount_dst = mount_a
# dest must start with / like /foo:/var/lib/mysql
# or with ~ like /foo:~/data
# otherwise it's option like /var/lib/mysql:rw
if not mount_dst.startswith("/"):
if not mount_dst.startswith("/") and not mount_dst.startswith("~") :
mount_dst, mount_opt = mount_a
mount_src = None
elif len(mount_a) == 3:
Expand Down

0 comments on commit 64d8be6

Please sign in to comment.