File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -726,7 +726,10 @@ Configures if and how to restart containers when they exit. Replaces
726
726
- ` delay ` : How long to wait between restart attempts, specified as a
727
727
[ duration] ( #specifying-durations ) (default: 0).
728
728
- ` max_attempts ` : How many times to attempt to restart a container before giving
729
- up (default: never give up).
729
+ up (default: never give up). If the restart does not succeed within the configured
730
+ ` window ` , this attempt doesn't count toward the configured ` max_attempts ` value.
731
+ For example, if ` max_attempts ` is set to '2', and the restart fails on the first
732
+ attempt, more than two restarts may be attempted.
730
733
- ` window ` : How long to wait before deciding if a restart has succeeded,
731
734
specified as a [ duration] ( #specifying-durations ) (default:
732
735
decide immediately).
You can’t perform that action at this time.
0 commit comments