Skip to content

Commit

Permalink
clean-up containers when exits (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville authored Nov 27, 2021
1 parent fd85071 commit b668ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megalinter/Linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def get_regex(self, reg):
def manage_docker_command(self, command):
if self.cli_docker_image is None:
return command
docker_command = ["docker", "run"]
docker_command = ["docker", "run", "--rm"]
if hasattr(self, "workspace"):
volume_root = config.get("MEGALINTER_VOLUME_ROOT", "")
if volume_root != "":
Expand Down

0 comments on commit b668ba3

Please sign in to comment.