diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-17 15:25:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 15:25:09 -0400 |
commit | fd184fa4a1d0bd7797de1fb062c90e1a6d56bd1e (patch) | |
tree | 08d480ab4e980643fdb158ded79e57b937a4192b /libpod/options.go | |
parent | 5694104c24f36d8575853a48e8ba3cdbf87b8f5c (diff) | |
parent | 6f1440a3ec16dfbf644acb87012967bc297ec975 (diff) | |
download | podman-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/options.go')
-rw-r--r-- | libpod/options.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/options.go b/libpod/options.go index 5a0f60093..e1c4ddf06 100644 --- a/libpod/options.go +++ b/libpod/options.go @@ -1285,7 +1285,7 @@ func WithRestartPolicy(policy string) CtrCreateOption { } switch policy { - case RestartPolicyNone, RestartPolicyNo, RestartPolicyOnFailure, RestartPolicyAlways: + case RestartPolicyNone, RestartPolicyNo, RestartPolicyOnFailure, RestartPolicyAlways, RestartPolicyUnlessStopped: ctr.config.RestartPolicy = policy default: return errors.Wrapf(define.ErrInvalidArg, "%q is not a valid restart policy", policy) |