Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to remove docker container when linting is done #1562

Closed
dmitri-trofimov opened this issue Jun 24, 2022 · 1 comment · Fixed by #1563
Closed

Add an option to remove docker container when linting is done #1562

dmitri-trofimov opened this issue Jun 24, 2022 · 1 comment · Fixed by #1563
Labels
enhancement New feature or request O: stale 🤖 This issue or pull request is stale, it will be closed if there is no activity

Comments

@dmitri-trofimov
Copy link
Contributor

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 let meagalinter know that it should cleanup after itself and remove the container when done linting. megalinter could do it by adding --rm to the docker 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.

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 🤖 label or comment on the issue.

@github-actions github-actions bot added the O: stale 🤖 This issue or pull request is stale, it will be closed if there is no activity label Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request O: stale 🤖 This issue or pull request is stale, it will be closed if there is no activity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant