mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 23:38:24 +00:00
Add unless-stopped restart policy
Fixes #11008 Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
@@ -276,7 +276,8 @@ Json Parameters:
|
||||
- **Capdrop** - A list of kernel capabilities to drop from the container.
|
||||
- **RestartPolicy** – The behavior to apply when the container exits. The
|
||||
value is an object with a `Name` property of either `"always"` to
|
||||
always restart or `"on-failure"` to restart only when the container
|
||||
always restart, `"unless-stopped"` to restart always except when
|
||||
user has manually stopped the container or `"on-failure"` to restart only when the container
|
||||
exit code is non-zero. If `on-failure` is used, `MaximumRetryCount`
|
||||
controls the number of times to retry before giving up.
|
||||
The default is not to restart. (optional)
|
||||
|
||||
Reference in New Issue
Block a user