Skip to content

Commit 47e5cfa

Browse files
committed
docs: fix description of restart-delay to mention max (1 minute)
Commit moby/moby@9bd3a7c (docker 17.04 and up) added a maximum timeout of 1 minute to the restart timeout. This patch updates the documentation to match the current behavior. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent e3023ca commit 47e5cfa

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/reference/run.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -554,17 +554,17 @@ Docker supports the following restart policies:
554554
</tbody>
555555
</table>
556556

557-
An ever increasing delay (double the previous delay, starting at 100
558-
milliseconds) is added before each restart to prevent flooding the server.
557+
An increasing delay (double the previous delay, starting at 100 milliseconds)
558+
is added before each restart to prevent flooding the server.
559559
This means the daemon will wait for 100 ms, then 200 ms, 400, 800, 1600,
560-
and so on until either the `on-failure` limit is hit, or when you `docker stop`
561-
or `docker rm -f` the container.
560+
and so on until either the `on-failure` limit, the maximum delay of 1 minute is
561+
hit, or when you `docker stop` or `docker rm -f` the container.
562562

563563
If a container is successfully restarted (the container is started and runs
564564
for at least 10 seconds), the delay is reset to its default value of 100 ms.
565565

566566
You can specify the maximum amount of times Docker will try to restart the
567-
container when using the **on-failure** policy. The default is that Docker
567+
container when using the **on-failure** policy. The default is that Docker
568568
will try forever to restart the container. The number of (attempted) restarts
569569
for a container can be obtained via [`docker inspect`](commandline/inspect.md). For example, to get the number of restarts
570570
for container "my-container";

0 commit comments

Comments
 (0)