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

Function commit

harness/docker_ops.py:144–148  ·  view source on GitHub ↗

Snapshot a container's filesystem as a new image. Used by re-attack to run a find-agent against the patched binary without rebuilding.

(container: str, tag: str)

Source from the content-addressed store, hash-verified

142
143
144def commit(container: str, tag: str) -> str:
145 """Snapshot a container's filesystem as a new image. Used by re-attack to
146 run a find-agent against the patched binary without rebuilding."""
147 subprocess.run(["docker", "commit", container, tag], check=True, capture_output=True)
148 return tag
149
150
151def rmi(tag: str) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected