mirror of
https://github.com/containers/podman.git
synced 2025-06-05 05:57:24 +08:00
Merge pull request #4035 from mheon/unmount_unmounted_is_safe
Unmounting a container that is already unmounted is OK
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user