MCPcopy Create free account
hub / github.com/apache/impala / _stop_container

Method _stop_container

docker/test-with-docker.py:623–628  ·  view source on GitHub ↗

Stops container. Ignores errors (e.g., if it's already exited).

(container)

Source from the content-addressed store, hash-verified

621
622 @staticmethod
623 def _stop_container(container):
624 """Stops container. Ignores errors (e.g., if it's already exited)."""
625 if container.running:
626 _call(["docker", "stop", container.id], check=False)
627 container.end = time.time()
628 container.running = False
629
630 @staticmethod
631 def _rm_container(container):

Callers 3

_create_build_imageMethod · 0.95
runMethod · 0.95
runMethod · 0.80

Calls 1

_callFunction · 0.85

Tested by

no test coverage detected