You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/markdown/podman-quadlet-rm.1.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ podman\-quadlet\-rm - Removes an installed quadlet
11
11
Remove one or more installed Quadlets from the current user. Following command also takes application name
12
12
as input and removes all the Quadlets which belongs to that specific application.
13
13
14
+
When the argument is uninstantiated template quadlet, this command removes the template quadlet file (e.g. `templateName@.container`) and the generated systemd template unit (e.g. `templateName@.service`). If there are running instances of that systemd template, the command fails if **--force** option is not set, and tries to stop the instances if **--force** option is set.
15
+
14
16
Note: If a quadlet is part of an application, removing that specific quadlet will remove the entire application.
15
17
When a quadlet is installed from a directory, all files installed from that directory—including both quadlet and non-quadlet files—are considered part
16
18
of a single application.
@@ -23,7 +25,7 @@ Remove all Quadlets for the current user.
23
25
24
26
#### **--force**, **-f**
25
27
26
-
Remove running Quadlets.
28
+
Remove running Quadlets (in case of uninstantiated template quadlets, stop its instances).
// Nothing to do here if the unit is not associated with this quadlet
296
+
continue
297
+
}
298
+
299
+
ifinstanceStatus.LoadState!="loaded" {
300
+
// Nothing to do here if the instance is not loaded
301
+
continue
302
+
}
303
+
304
+
ifinstanceStatus.ActiveState=="active" {
305
+
if!force {
306
+
runningInstanceErrors=append(runningInstanceErrors, fmt.Errorf("template %q has running instance %q and force is not set, refusing to remove: %w", quadlet.Name, instanceStatus.Name, define.ErrQuadletRunning))
307
+
continue
308
+
}
309
+
logrus.Debugf("Going to stop systemd unit %q (Instance of template %q)", instanceStatus.Name, quadlet.Name)
0 commit comments