Stops container. Ignores errors (e.g., if it's already exited).
(container)
| 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): |
no test coverage detected