Skip to content

Commit

Permalink
Remove flow containers on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
feluelle committed Nov 9, 2022
1 parent a9097d3 commit 8b11a38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sql/flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,11 @@ func CommonDockerUtil(cmd, args []string, flags map[string]string, mountDirs []s
return err
}

err = cli.ContainerRemove(ctx, resp.ID, types.ContainerRemoveOptions{})
if err != nil {
err = fmt.Errorf("docker remove failed %w", err)
return err
}

return nil
}

0 comments on commit 8b11a38

Please sign in to comment.