summaryrefslogtreecommitdiff
path: root/docs/source/markdown/podman-create.1.md
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2020-06-08 15:15:16 -0400
committerMatthew Heon <mheon@redhat.com>2020-06-17 11:16:12 -0400
commit6f1440a3ec16dfbf644acb87012967bc297ec975 (patch)
treec07c364b38d56d44ed1719a08940ea1d8ff9bb6e /docs/source/markdown/podman-create.1.md
parent1acd2adccb357c317add19cea8f0daea328e8315 (diff)
downloadpodman-6f1440a3ec16dfbf644acb87012967bc297ec975.tar.gz
podman-6f1440a3ec16dfbf644acb87012967bc297ec975.tar.bz2
podman-6f1440a3ec16dfbf644acb87012967bc297ec975.zip
Add support for the unless-stopped restart policy
We initially believed that implementing this required support for restarting containers after reboot, but this is not the case. The unless-stopped restart policy acts identically to the always restart policy except in cases related to reboot (which we do not support yet), but it does not require that support for us to implement it. Changes themselves are quite simple, we need a new restart policy constant, we need to remove existing checks that block creation of containers when unless-stopped was used, and we need to update the manpages. Fixes #6508 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'docs/source/markdown/podman-create.1.md')
-rw-r--r--docs/source/markdown/podman-create.1.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/source/markdown/podman-create.1.md b/docs/source/markdown/podman-create.1.md
index 1da9d72e6..03ac8642f 100644
--- a/docs/source/markdown/podman-create.1.md
+++ b/docs/source/markdown/podman-create.1.md
@@ -676,6 +676,7 @@ Valid values are:
- `no` : Do not restart containers on exit
- `on-failure[:max_retries]` : Restart containers when they exit with a non-0 exit code, retrying indefinitely or until the optional max_retries count is hit
- `always` : Restart containers when they exit, regardless of status, retrying indefinitely
+- `unless-stopped` : Identical to **always**
Please note that restart will not restart containers after a system reboot.
If this functionality is required in your environment, you can invoke Podman from a systemd unit file, or create an init script for whichever init system is in use.