spiegel_podman/libpod/define
Valentin Rothberg fb536046a3 health check: add on-failure actions
For systems that have extreme robustness requirements (edge devices,
particularly those in difficult to access environments), it is important
that applications continue running in all circumstances. When the
application fails, Podman must restart it automatically to provide this
robustness. Otherwise, these devices may require customer IT to
physically gain access to restart, which can be prohibitively difficult.

Add a new `--on-failure` flag that supports four actions:

- **none**: Take no action.

- **kill**: Kill the container.

- **restart**: Restart the container.  Do not combine the `restart`
               action with the `--restart` flag.  When running inside of
               a systemd unit, consider using the `kill` or `stop`
               action instead to make use of systemd's restart policy.

- **stop**: Stop the container.

To remain backwards compatible, **none** is the default action.

Backport of commit aad29e759c

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2097708
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-09-27 10:40:36 +02:00
..
annotations.go Update init ctr default for play kube 2022-07-26 13:39:20 -04:00
checkpoint_restore.go Added optional container checkpointing statistics 2021-11-15 11:50:24 +00:00
config.go use libnetwork from c/common 2022-01-12 17:07:30 +01:00
container.go fix --init with /dev bind mount 2022-05-23 13:59:05 +02:00
container_inspect.go health check: add on-failure actions 2022-09-27 10:40:36 +02:00
containerstate.go libpod: switch to golang native error wrapping 2022-07-05 16:06:32 +02:00
diff.go podman diff accept two images or containers 2021-07-02 17:11:56 +02:00
errors.go [CI:DOCS] Improve language. Fix spelling and typos. 2022-07-26 13:01:03 -04:00
exec_codes.go libpod: switch to golang native error wrapping 2022-07-05 16:06:32 +02:00
fileinfo.go Fixes from make codespell 2021-04-21 13:16:33 -04:00
healthchecks.go health check: add on-failure actions 2022-09-27 10:40:36 +02:00
info.go Add Authorixation field to Plugins for Info 2022-05-26 11:15:48 -07:00
mount.go separate file with mount consts in libpod/define 2021-03-07 12:01:04 +01:00
pod_inspect.go podman pod create --uts support 2022-07-05 09:28:07 -04:00
podstate.go Add a Degraded state to pods 2020-10-21 13:31:40 -04:00
runtime.go Add support for containers.conf 2020-03-27 14:36:03 -04:00
version.go Add 'Os' to be queried via 'version' output 2022-03-29 18:10:59 -04:00
volume_inspect.go [CI:DOCS] Improve language. Fix spelling and typos. 2022-07-26 13:01:03 -04:00