summaryrefslogtreecommitdiff
path: root/libpod/container.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-17 15:25:09 -0400
committerGitHub <noreply@github.com>2020-06-17 15:25:09 -0400
commitfd184fa4a1d0bd7797de1fb062c90e1a6d56bd1e (patch)
tree08d480ab4e980643fdb158ded79e57b937a4192b /libpod/container.go
parent5694104c24f36d8575853a48e8ba3cdbf87b8f5c (diff)
parent6f1440a3ec16dfbf644acb87012967bc297ec975 (diff)
downloadpodman-fd184fa4a1d0bd7797de1fb062c90e1a6d56bd1e.tar.gz
podman-fd184fa4a1d0bd7797de1fb062c90e1a6d56bd1e.tar.bz2
podman-fd184fa4a1d0bd7797de1fb062c90e1a6d56bd1e.zip
Merge pull request #6522 from mheon/unless-stopped
Add support for the unless-stopped restart policy
Diffstat (limited to 'libpod/container.go')
-rw-r--r--libpod/container.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go
index d4a779b13..20702903e 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -97,6 +97,10 @@ const (
// RestartPolicyOnFailure restarts the container on non-0 exit code,
// with an optional maximum number of retries.
RestartPolicyOnFailure = "on-failure"
+ // RestartPolicyUnlessStopped unconditionally restarts unless stopped
+ // by the user. It is identical to Always except with respect to
+ // handling of system restart, which Podman does not yet support.
+ RestartPolicyUnlessStopped = "unless-stopped"
)
// Container is a single OCI container.