Skip to content

Commit

Permalink
Close docker provider client on container terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
anjmao committed Oct 1, 2021
1 parent a5a9803 commit 2d2a7cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ func (c *DockerContainer) Terminate(ctx context.Context) error {
})

if err == nil {
if err := c.provider.client.Close(); err != nil {
return err
}
c.sessionID = uuid.UUID{}
}

Expand Down

0 comments on commit 2d2a7cf

Please sign in to comment.