Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup docker containers on termination (#445)
* Cleanup docker containers on termination The `--rm` switch tells docker to cleanup containers on termination. Without this an explicit `remove` is required after `stop` to clean up the container and a `prune` to remove arbitrary volumes left behind. While these are not difficult actions to perform, we are often unaware that we need to do them. I've also changed `kill` to `stop` because `stop` in the drop fn because `stop` attempts to shutdown the container gracefully. Since containers will do clean-up on `stop` we no longer need to call `docker rm` ourselves, so removed that as well. --------- Co-authored-by: tbro <tbro@users.noreply.github.com>
- Loading branch information