MCPcopy Create free account
hub / github.com/FastLED/FastLED / stop_container

Method stop_container

ci/docker_utils/DockerManager.py:344–348  ·  view source on GitHub ↗

Stops a running container with fast shutdown (1 second grace period).

(self, container_id_or_name: str)

Source from the content-addressed store, hash-verified

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."""

Callers 1

DockerManager.pyFile · 0.80

Calls 2

_run_docker_commandMethod · 0.95
printFunction · 0.50

Tested by

no test coverage detected