mirror of https://github.com/docker/docs.git
We need to umount /var/lib/docker when the daemon exits.
Currently we are leaving it bind mounted on stop. Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
This commit is contained in:
parent
a6577708ab
commit
a3ff8a98f7
|
@ -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, ", "))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue