mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-04 07:48:44 +00:00
Merge pull request #15348 from tonistiigi/11008-always-unless-stopped-restart-policy
Add always-unless-stopped restart policy
This commit is contained in:
@@ -278,7 +278,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