mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Merge pull request #24449 from ygalblum/quadlet-mount-image
Quadlet - support image file based mount in container file
This commit is contained in:
@ -657,10 +657,11 @@ Attach a filesystem mount to the container.
|
||||
This is equivalent to the Podman `--mount` option, and
|
||||
generally has the form `type=TYPE,TYPE-SPECIFIC-OPTION[,...]`.
|
||||
|
||||
As a special case, for `type=volume` if `source` ends with `.volume`, a Podman named volume called
|
||||
`systemd-$name` is used as the source, and the generated systemd service contains
|
||||
a dependency on the `$name-volume.service`. Such a volume can be automatically be lazily
|
||||
created by using a `$name.volume` Quadlet file.
|
||||
There are two special cases.
|
||||
1. For `type=volume`, if `source` ends with `.volume`, the Podman named volume generated by the corresponding `.volume` file is used.
|
||||
2. For `type=image`, if `source` ends with `.image`, the image generated by the corresponding `.image` file is used.
|
||||
|
||||
In both cases, the generated systemd service will contain a dependency on the service generated for the corresponding unit.
|
||||
|
||||
This key can be listed multiple times.
|
||||
|
||||
|
Reference in New Issue
Block a user