record the error of removing volumes

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Upstream-commit: 49da0290309771891a2ea9238709bc5a248609c9
Component: engine
This commit is contained in:
Ma Shimiao
2015-09-07 15:52:13 +08:00
parent f9e03bc314
commit cfca396ca7

View File

@ -55,7 +55,10 @@ func (daemon *Daemon) ContainerRm(name string, config *ContainerRmConfig) error
return fmt.Errorf("Cannot destroy container %s: %v", name, err)
}
container.removeMountPoints(config.RemoveVolume)
if err := container.removeMountPoints(config.RemoveVolume); err != nil {
logrus.Errorf("%v", err)
}
return nil
}