Merge pull request #28644 from zhukj/daemon-config
close the file Upstream-commit: 103f2e56bf753019a4013a2722f908a3ee1bc558 Component: engine
This commit is contained in:
@@ -140,6 +140,7 @@ func (daemon *Daemon) verifyVolumesInfo(container *container.Container) error {
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "could not open container config")
|
||||
}
|
||||
defer f.Close()
|
||||
var cv volumes
|
||||
if err := json.NewDecoder(f).Decode(&cv); err != nil {
|
||||
return errors.Wrap(err, "could not decode container config")
|
||||
|
||||
Reference in New Issue
Block a user