mirror of
https://github.com/containers/podman.git
synced 2025-06-29 23:22:40 +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
|
// error
|
||||||
// We still want to be able to kick the container out of the
|
// We still want to be able to kick the container out of the
|
||||||
// state
|
// 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())
|
logrus.Errorf("Storage for container %s has been removed", c.ID())
|
||||||
} else {
|
} else {
|
||||||
if cleanupErr != nil {
|
if cleanupErr != nil {
|
||||||
|
Reference in New Issue
Block a user