Skip to content

Commit 1f57150

Browse files
authored
Podman: Correct Quadlet install mechanism (#2294)
Quadlet services do not support enabling by `systemd enable`. Remove the wrong section and replace it with hint about the generator procedure.
1 parent 55fb168 commit 1f57150

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

docs/gemstones/containers/podman.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,7 @@ To automatically run the container upon system start or user login, you can add
8686
WantedBy=default.target
8787
```
8888

89-
Then let the generator run again and enable your service:
90-
91-
```bash
92-
systemctl --user daemon-reload;
93-
systemctl --user enable nextcloud.service;
94-
```
89+
As the generated service files are considered transient, they cannot be enabled by systemd. To mitigate this, the generator manually applies installs during generation. This effectively also enables those services files.
9590

9691
Other file types are supported: pod, volume, network, image, and kube. [Pods](https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#pod-units-pod), for instance, can be used to group containers – the generated systemd services and their dependencies (create the pod before the containers) are automatically managed by systemd.
9792

docs/guides/containers/podman_guide.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,7 @@ To automatically run the container upon system start or user login, you can add
163163
WantedBy=default.target
164164
```
165165

166-
Then let the generator run again and enable your service:
167-
168-
```bash
169-
systemctl --user daemon-reload;
170-
systemctl --user enable nextcloud.service;
171-
```
166+
As the generated service files are considered transient, they cannot be enabled by systemd. To mitigate this, the generator manually applies installs during generation. This effectively also enables those services files.
172167

173168
Other file types are supported: pod, volume, network, image, and kube. [Pods](https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#pod-units-pod), for instance, can be used to group containers – the generated systemd services and their dependencies (create the pod before the containers) are automatically managed by systemd.
174169

0 commit comments

Comments
 (0)