1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #6008 from rhatdan/umount

We need to umount /var/lib/docker when the daemon exits.
This commit is contained in:
Victor Vieux 2014-05-23 12:01:38 -07:00
commit 0874b85627

View file

@ -900,6 +900,10 @@ func (daemon *Daemon) Close() error {
utils.Errorf("daemon.containerGraph.Close(): %s", err.Error()) utils.Errorf("daemon.containerGraph.Close(): %s", err.Error())
errorsStrings = append(errorsStrings, err.Error()) errorsStrings = append(errorsStrings, err.Error())
} }
if err := mount.Unmount(daemon.config.Root); err != nil {
utils.Errorf("daemon.Umount(%s): %s", daemon.config.Root, err.Error())
errorsStrings = append(errorsStrings, err.Error())
}
if len(errorsStrings) > 0 { if len(errorsStrings) > 0 {
return fmt.Errorf("%s", strings.Join(errorsStrings, ", ")) return fmt.Errorf("%s", strings.Join(errorsStrings, ", "))
} }