Clarified max_attempts behavior (#5949)

This commit is contained in:
Steven Showers 2018-02-07 19:09:51 -05:00 committed by Misty Stanley-Jones
parent 2774cdb5c5
commit b7a9862728
1 changed files with 4 additions and 1 deletions

View File

@ -726,7 +726,10 @@ Configures if and how to restart containers when they exit. Replaces
- `delay`: How long to wait between restart attempts, specified as a
[duration](#specifying-durations) (default: 0).
- `max_attempts`: How many times to attempt to restart a container before giving
up (default: never give up).
up (default: never give up). If the restart does not succeed within the configured
`window`, this attempt doesn't count toward the configured `max_attempts` value.
For example, if `max_attempts` is set to '2', and the restart fails on the first
attempt, more than two restarts may be attempted.
- `window`: How long to wait before deciding if a restart has succeeded,
specified as a [duration](#specifying-durations) (default:
decide immediately).