From 1bc77dc969fa42758238da25e4c3f95449d57a28 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Tue, 24 Jan 2023 12:33:20 -0700 Subject: [PATCH] system: close Docker client once finished --- system/system.go | 1 + 1 file changed, 1 insertion(+) diff --git a/system/system.go b/system/system.go index a8d8006..0d3f3cd 100644 --- a/system/system.go +++ b/system/system.go @@ -127,6 +127,7 @@ func GetDockerInfo(ctx context.Context) (types.Version, types.Info, error) { if err != nil { return types.Version{}, types.Info{}, err } + defer c.Close() dockerVersion, err := c.ServerVersion(ctx) if err != nil {