Merge pull request #4035 from mheon/unmount_unmounted_is_safe

Unmounting a container that is already unmounted is OK
This commit is contained in:
OpenShift Merge Robot
2019-09-16 23:34:16 +02:00
committed by GitHub

View File

@ -1368,7 +1368,7 @@ func (c *Container) cleanupStorage() error {
// error
// We still want to be able to kick the container out of the
// state
if errors.Cause(err) == storage.ErrNotAContainer || errors.Cause(err) == storage.ErrContainerUnknown {
if errors.Cause(err) == storage.ErrNotAContainer || errors.Cause(err) == storage.ErrContainerUnknown || errors.Cause(err) == storage.ErrLayerNotMounted {
logrus.Errorf("Storage for container %s has been removed", c.ID())
} else {
if cleanupErr != nil {