mirror of
https://github.com/containers/podman.git
synced 2025-07-29 11:22:38 +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
|
||||
}
|
||||
}
|
||||
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)
|
||||
})
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user