mirror of
https://github.com/containers/podman.git
synced 2026-03-30 04:22:04 -04: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
202 B
Plaintext
8 lines
202 B
Plaintext
# assert-key-contains "Unit" "After" "startwithpod-pod.service"
|
|
# assert-key-contains "Unit" "BindsTo" "startwithpod-pod.service"
|
|
|
|
[Container]
|
|
Image=localhost/image
|
|
Pod=startwithpod.pod
|
|
StartWithPod=no
|