fix(snapshots): close Docker client after snapshot (#2235)

pull/2259/head
Anthony Lapenna 2018-09-05 08:44:04 +02:00 committed by GitHub
parent 0b8f7f6cea
commit 736f61dc2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ func (snapshotter *Snapshotter) CreateSnapshot(endpoint *portainer.Endpoint) (*p
if err != nil {
return nil, err
}
defer cli.Close()
return snapshot(cli)
}