From 774b56b3f8e37fb2a911390a2f15ced1654ba6f0 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Thu, 12 May 2022 12:17:49 -0400 Subject: [PATCH] local build --- containers.conf | 3 +++ containers.conf.5.md | 20 ++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/containers.conf b/containers.conf index 2707fbe..52ea4ed 100644 --- a/containers.conf +++ b/containers.conf @@ -506,6 +506,9 @@ log_driver = "journald" # #num_locks = 2048 +# Set the exit policy of the pod when the last container exits. +#pod_exit_policy = "continue" + # Whether to pull new image before running a container # #pull_policy = "missing" diff --git a/containers.conf.5.md b/containers.conf.5.md index f7c7e0a..27f696b 100644 --- a/containers.conf.5.md +++ b/containers.conf.5.md @@ -434,8 +434,15 @@ and the logfile will not be rotated. **events_logger**="journald" -Default method to use when logging events. -Valid values: `file`, `journald`, and `none`. +The default method to use when logging events. + +The default method is different based on the platform that +Podman is being run upon. To determine the current value, +use this command: + +`podman info --format {{.Host.EventLogger}` + +Valid values are: `file`, `journald`, and `none`. **helper_binaries_dir**=["/usr/libexec/podman", ...] @@ -549,6 +556,15 @@ pod consumes one lock. The default number available is 2048. If this is changed, a lock renumbering must be performed, using the `podman system renumber` command. +**pod_exit_policy**="continue" + +Set the exit policy of the pod when the last container exits. Supported policies are: + +| Exit Policy | Description | +| ------------------ | --------------------------------------------------------------------------- | +| *continue* | The pod continues running when the last container exits. Used by default. | +| *stop* | The pod is stopped when the last container exits. Used in `play kube`. | + **pull_policy**="always"|"missing"|"never" Pull image before running or creating a container. The default is **missing**.