Skip to content

Commit 7fcd30d

Browse files
authored
Fix #27015. Document ServiceName
1 parent 9dd5fb2 commit 7fcd30d

File tree

6 files changed

+48
-0
lines changed

6 files changed

+48
-0
lines changed

docs/source/markdown/podman-build.unit.5.md.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Valid options for `[Build]` section are listed below:
6868
| Retry=5 | --retry=5 |
6969
| RetryDelay=10s | --retry-delay=10s |
7070
| Secret=secret | --secret=id=mysecret,src=path |
71+
| ServiceName=name | Name the systemd unit `name.service` |
7172
| SetWorkingDirectory=unit | Set `WorkingDirectory` of systemd unit file |
7273
| Target=my-app | --target=my-app |
7374
| TLSVerify=false | --tls-verify=false |
@@ -114,6 +115,13 @@ Valid options for `[Build]` section are listed below:
114115

115116
@@option quadlet:secret.image
116117

118+
### `ServiceName=name`
119+
120+
By default, Quadlet will name the systemd service unit by appending `-build` to the name of the Quadlet.
121+
Setting this key overrides this behavior by instructing Quadlet to use the provided name.
122+
123+
Note, the name should not include the `.service` file extension
124+
117125
### `SetWorkingDirectory=path`
118126

119127
Provide context (a working directory) to `podman build`. Supported values are a path, a URL, or the

docs/source/markdown/podman-container.unit.5.md.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ Valid options for `[Container]` are listed below:
110110
| SecurityLabelLevel=s0:c1,c2 | --security-opt label=level:s0:c1,c2 |
111111
| SecurityLabelNested=true | --security-opt label=nested |
112112
| SecurityLabelType=spc_t | --security-opt label=type:spc_t |
113+
| ServiceName=name | Name the systemd unit `name.service` |
113114
| ShmSize=100m | --shm-size=100m |
114115
| StartWithPod=true | If Pod= is defined, container is started by pod |
115116
| StopSignal=SIGINT | --stop-signal=SIGINT |
@@ -336,6 +337,13 @@ Allow SecurityLabels to function within the container. This allows separation of
336337

337338
Set the label process type for the container processes.
338339

340+
### `ServiceName=name`
341+
342+
By default, Quadlet will name the systemd service unit by appending `-container` to the name of the Quadlet.
343+
Setting this key overrides this behavior by instructing Quadlet to use the provided name.
344+
345+
Note, the name should not include the `.service` file extension
346+
339347
@@option quadlet:shm-size
340348

341349
### `StartWithPod=bool`

docs/source/markdown/podman-image.unit.5.md.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Valid options for `[Image]` are listed below:
4545
| Policy=always | --policy=always |
4646
| Retry=5 | --retry=5 |
4747
| RetryDelay=10s | --retry-delay=10s |
48+
| ServiceName=name | Name the systemd unit `name.service` |
4849
| TLSVerify=false | --tls-verify=false |
4950
| Variant=arm/v7 | --variant=arm/v7 |
5051

@@ -96,6 +97,13 @@ requires setting
9697

9798
@@option quadlet:retry-delay
9899

100+
### `ServiceName=name`
101+
102+
By default, Quadlet will name the systemd service unit by appending `-image` to the name of the Quadlet.
103+
Setting this key overrides this behavior by instructing Quadlet to use the provided name.
104+
105+
Note, the name should not include the `.service` file extension
106+
99107
@@option quadlet:tls-verify
100108

101109
@@option quadlet:variant.container

docs/source/markdown/podman-kube.unit.5.md.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Valid options for `[Kube]` are listed below:
4343
| Network=host | --network host |
4444
| PodmanArgs=\-\-annotation=key=value | --annotation=key=value |
4545
| PublishPort=8080:80 | --publish 8080:80 |
46+
| ServiceName=name | Name the systemd unit `name.service` |
4647
| SetWorkingDirectory=yaml | Set `WorkingDirectory` of unit file to location of the YAML file |
4748
| UserNS=keep-id:uid=200,gid=210 | --userns keep-id:uid=200,gid=210 |
4849
| Yaml=/tmp/kube.yaml | podman kube play /tmp/kube.yaml |
@@ -89,6 +90,13 @@ Equivalent to the Podman `--force` option.
8990

9091
@@option quadlet:publish
9192

93+
### `ServiceName=name`
94+
95+
By default, Quadlet will name the systemd service unit by appending `-kube` to the name of the Quadlet.
96+
Setting this key overrides this behavior by instructing Quadlet to use the provided name.
97+
98+
Note, the name should not include the `.service` file extension
99+
92100
### `SetWorkingDirectory=yaml`
93101

94102
Set the `WorkingDirectory` field of the `Service` group of the Systemd service unit file.

docs/source/markdown/podman-network.unit.5.md.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Valid options for `[Network]` are listed below:
5050
| NetworkName=foo | podman network create foo |
5151
| Options=isolate=true | --opt isolate=true |
5252
| PodmanArgs=--dns=192.168.55.1 | --dns=192.168.55.1 |
53+
| ServiceName=name | Name the systemd unit `name.service` |
5354
| Subnet=192.5.0.0/16 | --subnet 192.5.0.0/16 |
5455

5556

@@ -92,6 +93,13 @@ conflicts with user-managed network.
9293

9394
@@option quadlet:podman-args
9495

96+
### `ServiceName=name`
97+
98+
By default, Quadlet will name the systemd service unit by appending `-network` to the name of the Quadlet.
99+
Setting this key overrides this behavior by instructing Quadlet to use the provided name.
100+
101+
Note, the name should not include the `.service` file extension
102+
95103
@@option quadlet:subnet
96104

97105
# EXAMPLES

docs/source/markdown/podman-volume.unit.5.md.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Valid options for `[Volume]` are listed below:
5656
| Label="foo=bar" | --label "foo=bar" |
5757
| Options=XYZ | --opt "o=XYZ" |
5858
| PodmanArgs=--driver=image | --driver=image |
59+
| ServiceName=name | Name the systemd unit `name.service` |
5960
| Type=type | Filesystem type of Device |
6061
| User=123 | --opt uid=123 |
6162
| VolumeName=foo | podman volume create foo |
@@ -113,6 +114,13 @@ The mount options to use for a filesystem as used by the **mount(8)** command `-
113114

114115
@@option quadlet:podman-args
115116

117+
### `ServiceName=name`
118+
119+
By default, Quadlet will name the systemd service unit by appending `-volume` to the name of the Quadlet.
120+
Setting this key overrides this behavior by instructing Quadlet to use the provided name.
121+
122+
Note, the name should not include the `.service` file extension
123+
116124
### `Type=`
117125

118126
The filesystem type of `Device` as used by the **mount(8)** commands `-t` option.

0 commit comments

Comments
 (0)