Skip to content

Commit 2ba7354

Browse files
authored
Merge pull request mitre-cyber-academy#4 from rlee287/patch-1
2 parents 31f0efa + 52281ab commit 2ba7354

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ectf_tools/run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ async def unlock(
3434

3535
ret = await run_shell(
3636
"docker run"
37+
" --rm"
3738
" --add-host ectf-net:host-gateway"
3839
f" -v {image}.{name}.tools.vol:/tools_out:ro"
3940
" --workdir=/tools_out"
@@ -65,6 +66,7 @@ async def pair(
6566

6667
ret = await run_shell(
6768
"docker run"
69+
" --rm"
6870
" --add-host ectf-net:host-gateway"
6971
f" -v {image}.{name}.tools.vol:/tools_out:ro"
7072
" --workdir=/tools_out"
@@ -97,6 +99,7 @@ async def package(
9799

98100
ret = await run_shell(
99101
"docker run"
102+
" --rm"
100103
" --add-host ectf-net:host-gateway"
101104
f" -v {image}.{name}.{deployment}.secrets.vol:/secrets"
102105
f" -v {image}.{name}.tools.vol:/tools_out:ro"
@@ -131,6 +134,7 @@ async def enable(
131134

132135
ret = await run_shell(
133136
"docker run"
137+
" --rm"
134138
" --add-host ectf-net:host-gateway"
135139
f" -v {image}.{name}.tools.vol:/tools_out:ro"
136140
" --workdir=/tools_out"

0 commit comments

Comments
 (0)