-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
Allow removal of docker container when done #1563
Allow removal of docker container when done #1563
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1563 +/- ##
==========================================
+ Coverage 84.50% 84.53% +0.02%
==========================================
Files 145 145
Lines 3562 3562
==========================================
+ Hits 3010 3011 +1
+ Misses 552 551 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I run docker system prune
from time to time to deal with this, which works well for power users since it gives control over when the cleanup takes place, but forces additional maintenance onto the developer, and there is no guarantee that every MegaLinter user is familiar with Docker. I don’t have any particular comments on this PR besides the ones I already put on #1561, but my personal preference would be to ferry arguments through to Docker rather than mirror a subset of its API. Let us give @nvuillam a chance to weigh in before I send you off in a poor direction though.
It looks good to me to merge once v6 is released! |
@dmitri-trofimov now v6 is released, please can you upgrade your branche by merging main into it and solve conflicts ? :) |
@dmitri-trofimov please could you upgrade your branch ? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, thanks for your contribution :)
Apologies for making the same mistake twice. I just realized the argument name is likely going to trigger CSpell for our users and should be |
go @Kurt-von-Laven :) |
Went for it in #1693. |
Fixes #1562
Proposed Changes
--removecontainer
to the megalinter runnner--rm
option todocker run
when the--removecontainer
is specified--rm
option ensures the removal of docker container (but not the image) when linting is done.Readiness Checklist
Author/Contributor
Reviewing Maintainer
breaking
if this is a large fundamental changeautomation
,bug
,documentation
,enhancement
,infrastructure
, orperformance