fix(macos-container): remove --rm from agent run so commit can export

container stop was removing the container immediately (due to --rm)
before container export could run. The force_remove_container teardown
callback on the ExitStack already handles cleanup on normal exit, so
--rm was redundant. Without it, the stopped container stays available
for container export to snapshot.
This commit is contained in:
2026-06-23 07:59:09 +00:00
committed by didericis
parent cb321f7ad4
commit c6362fda7b
@@ -328,7 +328,6 @@ def _agent_run_argv(
"container", "run",
"--name", plan.container_name,
"--detach",
"--rm",
"--network", internal_network,
]
for entry in _agent_env_entries(plan, sidecar_ip):