mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-14 12:49:36 +00: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>
7 lines
203 B
Text
7 lines
203 B
Text
# assert-key-contains "Unit" "After" "startwithpod-pod.service"
|
|
# assert-key-contains "Unit" "BindsTo" "startwithpod-pod.service"
|
|
|
|
[Container]
|
|
Image=localhost/image
|
|
Pod=startwithpod.pod
|
|
StartWithPod=yes
|