aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2021-12-01 15:40:58 +0100
committerGitHub <noreply@github.com>2021-12-01 15:40:58 +0100
commitdddd578dccbcde3bcc2bce93edeb6142509facce (patch)
tree3ca8755f239466ffcdb7abdc3a896e1e4d7b7890
parentd7d40ba85625e507bcd66fe249d20f2b28573058 (diff)
tools/syz-env: automatically remove the container on exit (#2900)
To see you garbage containers, call "docker ps -a". To clean your system, use "docker container prune". In my case ~9GB.
-rwxr-xr-xtools/syz-env1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/syz-env b/tools/syz-env
index 11e24e424..02010508d 100755
--- a/tools/syz-env
+++ b/tools/syz-env
@@ -56,6 +56,7 @@ fi
# Run everything as the host user, this is important for created/modified files.
docker run \
+ --rm \
--user $(id -u ${USER}):$(id -g ${USER}) \
--volume "$SCRIPT_DIR/..:/syzkaller/gopath/src/github.com/google/syzkaller" \
--volume "$HOME/.cache:/syzkaller/.cache" \