Merge pull request #3306 from thaJeztah/docs_update_max_restart_timeout

docs: fix description of restart-delay to mention max (1 minute)
This commit is contained in:
Sebastiaan van Stijn 2021-09-22 18:33:46 +02:00 committed by GitHub
commit 154ce5e58d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -554,11 +554,11 @@ Docker supports the following restart policies:
</tbody> </tbody>
</table> </table>
An ever increasing delay (double the previous delay, starting at 100 An increasing delay (double the previous delay, starting at 100 milliseconds)
milliseconds) is added before each restart to prevent flooding the server. is added before each restart to prevent flooding the server.
This means the daemon will wait for 100 ms, then 200 ms, 400, 800, 1600, This means the daemon will wait for 100 ms, then 200 ms, 400, 800, 1600,
and so on until either the `on-failure` limit is hit, or when you `docker stop` and so on until either the `on-failure` limit, the maximum delay of 1 minute is
or `docker rm -f` the container. hit, or when you `docker stop` or `docker rm -f` the container.
If a container is successfully restarted (the container is started and runs If a container is successfully restarted (the container is started and runs
for at least 10 seconds), the delay is reset to its default value of 100 ms. for at least 10 seconds), the delay is reset to its default value of 100 ms.