mirror of https://github.com/portainer/portainer
fix(snapshots): close Docker client after snapshot (#2235)
parent
0b8f7f6cea
commit
736f61dc2f
|
@ -22,6 +22,7 @@ func (snapshotter *Snapshotter) CreateSnapshot(endpoint *portainer.Endpoint) (*p
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer cli.Close()
|
||||
|
||||
return snapshot(cli)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue