diff options
author | Qi Wang <qiwan@redhat.com> | 2019-11-04 15:07:24 -0500 |
---|---|---|
committer | Qi Wang <qiwan@redhat.com> | 2019-11-26 13:19:31 -0500 |
commit | d9400cced2afad61eafa18da661891a96db1eafc (patch) | |
tree | 6672d5b506ac9355eabdca1804dc62060ac91867 /cmd/podman/system_prune.go | |
parent | f5ef3d59bcc7e7beae8716ab10153e1eafd634c1 (diff) | |
download | podman-d9400cced2afad61eafa18da661891a96db1eafc.tar.gz podman-d9400cced2afad61eafa18da661891a96db1eafc.tar.bz2 podman-d9400cced2afad61eafa18da661891a96db1eafc.zip |
Remove containers when pruning a stopped pod.
This path allows pod prune & pod rm to remove stopped containers in the pod before deleting the pod.
PrunePods and RemovePod should be able to remove containers without force removal of stopped pods.
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'cmd/podman/system_prune.go')
-rw-r--r-- | cmd/podman/system_prune.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd/podman/system_prune.go b/cmd/podman/system_prune.go index c4d76b2dd..ae5d7ed2d 100644 --- a/cmd/podman/system_prune.go +++ b/cmd/podman/system_prune.go @@ -82,7 +82,6 @@ Are you sure you want to continue? [y/N] `, volumeString) fmt.Println("Deleted Pods") pruneValues := cliconfig.PodPruneValues{ PodmanCommand: c.PodmanCommand, - Force: c.Force, } ctx := getContext() ok, failures, lasterr := runtime.PrunePods(ctx, &pruneValues) |