diff --git a/processors/local/local.go b/processors/local/local.go index cb831bd..e9f3900 100644 --- a/processors/local/local.go +++ b/processors/local/local.go @@ -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)