@@ -56,8 +56,8 @@ def __init__(self, base_url=None, version=DEFAULT_DOCKER_API_VERSION,
56
56
)
57
57
)
58
58
self .base_url = base_url
59
+ self .timeout = timeout
59
60
self ._version = version
60
- self ._timeout = timeout
61
61
self ._auth_configs = auth .load_config ()
62
62
63
63
# Use SSLAdapter for the ability to specify SSL version
@@ -71,7 +71,7 @@ def __init__(self, base_url=None, version=DEFAULT_DOCKER_API_VERSION,
71
71
def _set_request_timeout (self , kwargs ):
72
72
"""Prepare the kwargs for an HTTP request by inserting the timeout
73
73
parameter, if not already present."""
74
- kwargs .setdefault ('timeout' , self ._timeout )
74
+ kwargs .setdefault ('timeout' , self .timeout )
75
75
return kwargs
76
76
77
77
def _post (self , url , ** kwargs ):
@@ -954,7 +954,7 @@ def stop(self, container, timeout=10):
954
954
params = {'t' : timeout }
955
955
url = self ._url ("/containers/{0}/stop" .format (container ))
956
956
res = self ._post (url , params = params ,
957
- timeout = (timeout + self ._timeout ))
957
+ timeout = (timeout + self .timeout ))
958
958
self ._raise_for_status (res )
959
959
960
960
def tag (self , image , repository , tag = None , force = False ):
0 commit comments