mirror of
https://github.com/containers/podman.git
synced 2025-06-25 03:52:15 +08:00
Merge pull request #3558 from mheon/fix_pod_remove
Fix a bug where ctrs could not be removed from pods
This commit is contained in:
@ -431,10 +431,12 @@ func (r *Runtime) removeContainer(ctx context.Context, c *Container, force bool,
|
|||||||
// If we're removing the pod, the container will be evicted
|
// If we're removing the pod, the container will be evicted
|
||||||
// from the state elsewhere
|
// from the state elsewhere
|
||||||
if !removePod {
|
if !removePod {
|
||||||
if cleanupErr == nil {
|
if err := r.state.RemoveContainerFromPod(pod, c); err != nil {
|
||||||
cleanupErr = err
|
if cleanupErr == nil {
|
||||||
} else {
|
cleanupErr = err
|
||||||
logrus.Errorf("removing container from pod: %v", err)
|
} else {
|
||||||
|
logrus.Errorf("removing container from pod: %v", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user