Skip to content

Restart policies, and what unhealthy does not do

Select an icon to see what it is.

Step 3 of 6

The wait doubles each time

dockerd waits 100 milliseconds before the first restart and doubles the wait after each failed run. If a run lasts at least 10 seconds, the wait goes back to the start, and it is capped at one minute. The backoff stops a crashing container from spinning the CPU.

Restart schedule for a container that keeps failing

failure 1 -> wait 100 ms -> start
failure 2 -> wait 200 ms -> start
failure 3 -> wait 400 ms -> start
a run of 10 s or more resets the wait