From fd9e215794e58265049fc772f8cc31afbca9e5ea Mon Sep 17 00:00:00 2001 From: Danilo Tuler Date: Fri, 8 Nov 2024 11:22:06 -0500 Subject: [PATCH] feat(cli): remove container after execution --- .changeset/healthy-kangaroos-sin.md | 5 +++++ apps/cli/src/exec/util.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/healthy-kangaroos-sin.md diff --git a/.changeset/healthy-kangaroos-sin.md b/.changeset/healthy-kangaroos-sin.md new file mode 100644 index 00000000..b0d6d767 --- /dev/null +++ b/.changeset/healthy-kangaroos-sin.md @@ -0,0 +1,5 @@ +--- +"@cartesi/cli": major +--- + +remove container after execution diff --git a/apps/cli/src/exec/util.ts b/apps/cli/src/exec/util.ts index 7da5d86f..90e4c1a4 100644 --- a/apps/cli/src/exec/util.ts +++ b/apps/cli/src/exec/util.ts @@ -41,6 +41,7 @@ export const execaDockerFallback = async ( "--workdir", "/work", "--interactive", + "--rm", "--user", `${userInfo.uid}:${userInfo.gid}`, ]; @@ -89,6 +90,7 @@ export const spawnSyncDockerFallback = ( "--workdir", "/work", "--interactive", + "--rm", "--user", `${userInfo.uid}:${userInfo.gid}`, ];