Add an option to remove docker container when linting is done #1562
Labels
enhancement
New feature or request
O: stale 🤖
This issue or pull request is stale, it will be closed if there is no activity
Is your feature request related to a problem? Please describe.
Running
megalinter
multpiple times on a local computer causes it to create many containers. Often we don't need to keep them and would like to remove them as soon as the linting is done.Describe the solution you'd like
I would like a command line argument (like
--removecontainer
) that would allow me to letmeagalinter
know that it should cleanup after itself and remove the container when done linting.megalinter
could do it by adding--rm
to thedocker run
.Describe alternatives you've considered
It is possible to automate the container clenaup in a different way - list containers, find the one that was just executed and remove it. But it does seem like too much complexity, considering Docker already has the
--rm
option.Additional context
I can create a PR for that shortly.
The text was updated successfully, but these errors were encountered: