mirror of https://github.com/docker/docs.git
Merge pull request #16113 from Mashimiao/fix-bug-daemon-delete-link-remove
record the error of removing volumes when removing containers
This commit is contained in:
commit
25418010ef
|
|
@ -55,7 +55,10 @@ func (daemon *Daemon) ContainerRm(name string, config *ContainerRmConfig) error
|
||||||
return fmt.Errorf("Cannot destroy container %s: %v", name, err)
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue