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:
@@ -328,7 +328,6 @@ def _agent_run_argv(
|
|||||||
"container", "run",
|
"container", "run",
|
||||||
"--name", plan.container_name,
|
"--name", plan.container_name,
|
||||||
"--detach",
|
"--detach",
|
||||||
"--rm",
|
|
||||||
"--network", internal_network,
|
"--network", internal_network,
|
||||||
]
|
]
|
||||||
for entry in _agent_env_entries(plan, sidecar_ip):
|
for entry in _agent_env_entries(plan, sidecar_ip):
|
||||||
|
|||||||
Reference in New Issue
Block a user