Commit 62f1f36
committed
Add subpath support to volumes in
To allow subpath mount as describes in [Compose Specs](https://github.com/compose-spec/compose-spec/blob/main/05-services.md),
`refer_volume_over_mount` is changed from _True_ to **False**
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 <me@fccagou.fr>--mount option1 parent a1f3bef commit 62f1f36
File tree
2 files changed
+24
-4
lines changed- tests/integration/selinux
2 files changed
+24
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
462 | 463 | | |
463 | 464 | | |
464 | 465 | | |
| |||
480 | 481 | | |
481 | 482 | | |
482 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
483 | 489 | | |
484 | 490 | | |
485 | 491 | | |
| |||
1186 | 1192 | | |
1187 | 1193 | | |
1188 | 1194 | | |
1189 | | - | |
1190 | 1195 | | |
1191 | 1196 | | |
1192 | 1197 | | |
| |||
2064 | 2069 | | |
2065 | 2070 | | |
2066 | 2071 | | |
2067 | | - | |
| 2072 | + | |
2068 | 2073 | | |
2069 | 2074 | | |
2070 | 2075 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
| |||
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
51 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
52 | 67 | | |
53 | 68 | | |
54 | 69 | | |
| |||
0 commit comments