mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
record the error of removing volumes
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user