Skip to content

Commit

Permalink
fix prun pod with container
Browse files Browse the repository at this point in the history
fix containers#4346
This PR sets c.Force to true if user reply 'y' to system prune confirmation question.

Signed-off-by: Qi Wang <[email protected]>
  • Loading branch information
QiWang19 committed Nov 1, 2019
1 parent 04e8bf3 commit 36b3daf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/podman/system_prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Are you sure you want to continue? [y/N] `, volumeString)
if strings.ToLower(ans)[0] != 'y' {
return nil
}
c.Force = true
}

runtime, err := adapter.GetRuntime(getContext(), &c.PodmanCommand)
Expand Down

0 comments on commit 36b3daf

Please sign in to comment.