Commit 740aa00
committed
Add subpath support to volumes with type volume in
To allow subpath mount as describes in [Compose Specs](https://github.com/compose-spec/compose-spec/blob/main/05-services.md),
Compose entries exemple:
- type: volume
source: webservices
target: /srv/www/vhosts/server1
read_only: true
volume:
subpath: server1
- type: volume
source: webservices
target: /srv/www/vhosts/server2
read_only: true
volume:
subpath: server2
- type: volume
source: webservices
target: /srv/www/vhosts/server2/uploads
read_only: false
volume:
subpath: server2/uploads
Runs podman with options
--mount type=volume,source=webservices,target=/srv/www/vhosts/server1,ro
--mount type=volume,source=webservices,target=/srv/www/vhosts/server2,ro,subpath=server2
--mount type=volume,source=webservices,target=/srv/www/vhosts/server2/uploads,subpath=server2/uploads
Signed-off-by: fccagou <[email protected]>--mount option1 parent 742fbdd commit 740aa00
2 files changed
+53
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
481 | | - | |
482 | | - | |
483 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
484 | 486 | | |
485 | 487 | | |
| 488 | + | |
486 | 489 | | |
487 | 490 | | |
488 | 491 | | |
| |||
580 | 583 | | |
581 | 584 | | |
582 | 585 | | |
583 | | - | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
584 | 591 | | |
585 | | - | |
| 592 | + | |
586 | 593 | | |
587 | 594 | | |
588 | 595 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
759 | 800 | | |
760 | 801 | | |
761 | 802 | | |
| |||
0 commit comments