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)
| 142 | |
| 143 | |
| 144 | def 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 | |
| 151 | def rmi(tag: str) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected