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.
This commit is contained in:
Stefan Haun 2024-08-04 15:25:40 +02:00 committed by Lane.Wei
parent 4697a9801d
commit a3c60c8bf3
1 changed files with 2 additions and 0 deletions

View File

@ -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 $*