MCPcopy Create free account
hub / github.com/anthropics/defending-code-reference-harness / rm

Function rm

harness/docker_ops.py:111–113  ·  view source on GitHub ↗

Remove a container, force-killing if running. Idempotent.

(container: str)

Source from the content-addressed store, hash-verified

109
110
111def rm(container: str) -> None:
112 """Remove a container, force-killing if running. Idempotent."""
113 subprocess.run(["docker", "rm", "-f", container], capture_output=True)
114
115
116def image_exists(tag: str) -> bool:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected