Skip to content

Commit

Permalink
Add Docker flag to remove containers after finishing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
penguineer committed Aug 4, 2024
1 parent d59cb73 commit 450ae3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DockerRun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 $*

0 comments on commit 450ae3b

Please sign in to comment.