summaryrefslogtreecommitdiff
path: root/cmd/podman/system_prune.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-04-30 15:16:29 +0200
committerGitHub <noreply@github.com>2019-04-30 15:16:29 +0200
commit084e4e16a102bc48b3b5c060947f2d1c9d7e2e2f (patch)
tree9c0aef8150988204169a6eb19e299acda6dc8f96 /cmd/podman/system_prune.go
parenta2fd2d2c32c86b6fdee038312fe246bd1c825c7e (diff)
parent2e800d63aa388bb248c97ea24fae2f7190fe3cce (diff)
downloadpodman-084e4e16a102bc48b3b5c060947f2d1c9d7e2e2f.tar.gz
podman-084e4e16a102bc48b3b5c060947f2d1c9d7e2e2f.tar.bz2
podman-084e4e16a102bc48b3b5c060947f2d1c9d7e2e2f.zip
Merge pull request #2982 from baude/remotecontainerprune
podman-remote prune containers
Diffstat (limited to 'cmd/podman/system_prune.go')
-rw-r--r--cmd/podman/system_prune.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/system_prune.go b/cmd/podman/system_prune.go
index 8a648b603..d5b218cd8 100644
--- a/cmd/podman/system_prune.go
+++ b/cmd/podman/system_prune.go
@@ -81,14 +81,15 @@ Are you sure you want to continue? [y/N] `, volumeString)
rmWorkers := shared.Parallelize("rm")
ctx := getContext()
fmt.Println("Deleted Containers")
- lasterr := pruneContainers(runtime, ctx, rmWorkers, false, false)
+ ok, failures, lasterr := runtime.Prune(ctx, rmWorkers, false)
+ printCmdResults(ok, failures)
fmt.Println("Deleted Pods")
pruneValues := cliconfig.PodPruneValues{
PodmanCommand: c.PodmanCommand,
Force: c.Force,
}
- ok, failures, err := runtime.PrunePods(ctx, &pruneValues)
+ ok, failures, err = runtime.PrunePods(ctx, &pruneValues)
if err != nil {
if lasterr != nil {
logrus.Errorf("%q", lasterr)