mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
record the error of removing volumes
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
This commit is contained in:
parent
7ce97dbe30
commit
49da029030
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue