Skip to content

Commit

Permalink
Merge pull request #32 from ZetaTwo/docker-rm
Browse files Browse the repository at this point in the history
Issue #31: Clean up plaso containers after use
  • Loading branch information
meeehow authored Feb 18, 2023
2 parents f11fee3 + 1610a73 commit 40d271b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processors/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (p *Processor) ImageExport(sourcePath string) (string, error) {
exportDir := filepath.Join(baseDir, "export")
logFile := filepath.Join(baseDir, "image_export.log")

args := []string{"run", "-v", "/tmp/:/tmp", "log2timeline/plaso", "image_export", "--logfile", logFile, "--partitions", "all", "--volumes", "all", "-w", exportDir, sourcePath}
args := []string{"run", "--rm", "-v", "/tmp/:/tmp", "log2timeline/plaso", "image_export", "--logfile", logFile, "--partitions", "all", "--volumes", "all", "-w", exportDir, sourcePath}
_, err := shellCommand("docker", args...)
if err != nil {
return "", fmt.Errorf("error while running Plaso: %v", err)
Expand Down

0 comments on commit 40d271b

Please sign in to comment.