mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00

By default today, the container is always started if its pod is also started. This prevents to create custom with systemd where containers in a pod could be started through their `[Install]` section. We add a key `StartWithPod=`, enabled by default, that enables one to disable that behavior. This prevents the pod service from changing the state of the container service. Fixes #24401 Signed-off-by: Farya L. Maerten <me@ltow.me>
8 lines
276 B
Plaintext
8 lines
276 B
Plaintext
## assert-key-contains "Unit" "Wants" "startwithpod_yes.service"
|
|
## assert-key-contains "Unit" "Before" "startwithpod_yes.service"
|
|
|
|
## assert-key-not-contains "Unit" "Wants" "startwithpod_no.service"
|
|
## assert-key-not-contains "Unit" "Before" "startwithpod_no.service"
|
|
|
|
[Pod]
|