Merge pull request #24449 from ygalblum/quadlet-mount-image

Quadlet - support image file based mount in container file
This commit is contained in:
openshift-merge-bot[bot]
2024-11-04 10:20:33 +00:00
committed by GitHub
4 changed files with 27 additions and 18 deletions

View File

@ -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.