spiegel_podman/pkg/systemd/generate
Valentin Rothberg 221cfc6872 container/pod id file: truncate instead of throwing an error
Truncate the container and pod ID files instead of throwing an error.
The main motivation is to prevent redundant work when starting systemd
units.  Throwing an error when the file already exists is not preventing
races or file corruptions, so let's leave that to the user which in
almost all cases are generated (and tested) systemd units.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-10-25 09:37:35 +02:00
..
common.go podman generate systemd: handle --sdnotify correctly 2022-07-25 14:16:17 +02:00
common_test.go generate systemd: support entrypoint JSON strings 2021-12-08 15:51:23 +01:00
containers.go container/pod id file: truncate instead of throwing an error 2022-10-25 09:37:35 +02:00
containers_test.go container/pod id file: truncate instead of throwing an error 2022-10-25 09:37:35 +02:00
pods.go container/pod id file: truncate instead of throwing an error 2022-10-25 09:37:35 +02:00
pods_test.go container/pod id file: truncate instead of throwing an error 2022-10-25 09:37:35 +02:00