Quadlet - Allow the user to set the service name for .pod files

Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
This commit is contained in:
Ygal Blum
2024-07-29 11:52:23 +03:00
parent 1c4fbe7965
commit f3a86266e6
3 changed files with 19 additions and 0 deletions

View File

@ -863,6 +863,7 @@ Valid options for `[Pod]` are listed below:
| PodmanArgs=\-\-cpus=2 | --cpus=2 |
| PodName=name | --name=name |
| PublishPort=50-59 | --publish 50-59 |
| ServiceName=name | Name the systemd unit `name.service` |
| Volume=/source:/dest | --volume /source:/dest |
Supported keys in the `[Pod]` section are:
@ -947,6 +948,14 @@ When using `host` networking via `Network=host`, the `PublishPort=` option canno
This key can be listed multiple times.
### `ServiceName=`
By default, Quadlet will name the systemd service unit by appending `-pod` to the name of the Quadlet.
Setting this key overrides this behavior by instructing Quadlet to use the provided name.
Note, the name should not include the `.service` file extension
### `Volume=`
Mount a volume in the pod. This is equivalent to the Podman `--volume` option, and