From c5cc23884a53bb2d074b290ae7e3beb8b26d1703 Mon Sep 17 00:00:00 2001 From: Aashutosh Rathi Date: Tue, 18 Apr 2017 03:56:13 +0530 Subject: [PATCH] Update services.py Signed-off-by: Aashutosh Rathi --- docker/types/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/types/services.py b/docker/types/services.py index 9291c9bd..512b80fd 100644 --- a/docker/types/services.py +++ b/docker/types/services.py @@ -302,8 +302,8 @@ class RestartPolicy(dict): condition (string): Condition for restart (``none``, ``on-failure``, or ``any``). Default: `none`. delay (int): Delay between restart attempts. Default: 0 - attempts (int): Maximum attempts to restart a given container before - giving up. Default value is 0, which is ignored. + max_attempts (int): Maximum attempts to restart a given container + before giving up. Default value is 0, which is ignored. window (int): Time window used to evaluate the restart policy. Default value is 0, which is unbounded. """