mirror of
https://github.com/containers/podman.git
synced 2025-07-30 20:02:37 +08:00
Merge pull request #7557 from vrothberg/fix-7384
podman stop: do not cleanup for auto-removal
This commit is contained in:
@ -174,6 +174,12 @@ func (ic *ContainerEngine) ContainerStop(ctx context.Context, namesOrIds []strin
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if c.AutoRemove() {
|
||||||
|
// Issue #7384: if the container is configured for
|
||||||
|
// auto-removal, it might already have been removed at
|
||||||
|
// this point.
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return c.Cleanup(ctx)
|
return c.Cleanup(ctx)
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user