Stops a running container with fast shutdown (1 second grace period).
(self, container_id_or_name: str)
| 342 | return "" |
| 343 | |
| 344 | def stop_container(self, container_id_or_name: str): |
| 345 | """Stops a running container with fast shutdown (1 second grace period).""" |
| 346 | print(f"Stopping container: {container_id_or_name}") |
| 347 | self._run_docker_command(["stop", "--time=1", container_id_or_name]) |
| 348 | print(f"Container {container_id_or_name} stopped.") |
| 349 | |
| 350 | def remove_container(self, container_id_or_name: str): |
| 351 | """Removes a container.""" |
no test coverage detected