From 49da0290309771891a2ea9238709bc5a248609c9 Mon Sep 17 00:00:00 2001 From: Ma Shimiao Date: Mon, 7 Sep 2015 15:52:13 +0800 Subject: [PATCH] record the error of removing volumes Signed-off-by: Ma Shimiao --- daemon/delete.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon/delete.go b/daemon/delete.go index e914d2bbd5..f2116bd1d5 100644 --- a/daemon/delete.go +++ b/daemon/delete.go @@ -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 }