mirror of
https://github.com/containers/podman.git
synced 2025-05-22 01:27:07 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user