From a3c60c8bf3a4a8b99fac9450d1afcf0d38fe4904 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Sun, 4 Aug 2024 15:25:40 +0200 Subject: [PATCH] Add Docker flag to remove containers after finishing When using `DockerRun.sh` stale containers were left over after closing the application. These containers would also not be re-used. Add the `--rm` flag to make Docker delete the containers after running the application, since they are re-created for each run anyways. --- DockerRun.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DockerRun.sh b/DockerRun.sh index 0e2d98330b..acc93f5473 100755 --- a/DockerRun.sh +++ b/DockerRun.sh @@ -20,6 +20,8 @@ docker run \ --privileged=true \ `# Attach tty for running bambu with command line things` \ -ti \ + `# Remove container when it is finished` \ + --rm \ `# Pass all parameters from this script to the bambu ENTRYPOINT binary` \ bambustudio $*