File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 2323from docker .utils import compare_version
2424from retry import retry
2525import docker .errors
26+ import python_on_whales
2627import six
2728import timeout_decorator
2829
@@ -236,7 +237,7 @@ def start(
236237
237238 # start the container
238239 self .container = self .docker_client .create_container (self .image_name , ** kwargs )
239- self . docker_client .start (self .container ["Id" ])
240+ python_on_whales . docker .start (self .container ["Id" ])
240241
241242 # run any supplied provisioners
242243 if provisioners :
@@ -254,10 +255,7 @@ def stop(self):
254255 Stop the backing Docker container.
255256 """
256257 if self .container :
257- self .docker_client .stop (
258- self .container ["Id" ],
259- timeout = 0 ,
260- )
258+ python_on_whales .docker .stop (self .container ["Id" ], time = 0 )
261259
262260 def cleanup (self ):
263261 """
You can’t perform that action at this time.
0 commit comments