From 2d2a7cf737d7425aea15035b48de020b9a3298bb Mon Sep 17 00:00:00 2001 From: anjmao Date: Fri, 1 Oct 2021 14:15:51 +0300 Subject: [PATCH] Close docker provider client on container terminate --- docker.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker.go b/docker.go index efb324aa54..f0c8a89d53 100644 --- a/docker.go +++ b/docker.go @@ -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{} }