system: close Docker client once finished

This commit is contained in:
Matthew Penner 2023-01-24 12:33:20 -07:00
parent b8715d1d4f
commit 1bc77dc969
No known key found for this signature in database

View File

@ -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 {