Skip to content

Commit

Permalink
Add force option to the container removal in podman
Browse files Browse the repository at this point in the history
  • Loading branch information
LimeHat committed Feb 13, 2022
1 parent e8ee4bf commit 8a9aea4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/podman/podman.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ func (r *PodmanRuntime) DeleteContainer(ctx context.Context, contName string) er
log.Warnf("Unable to stop %q gracefully: %v", contName, err)
}
}
// and do a force removal in the end
force = true
err = containers.Remove(ctx, contName, &containers.RemoveOptions{Force: &force})
return err
}
Expand Down

0 comments on commit 8a9aea4

Please sign in to comment.