From 2e800d63aa388bb248c97ea24fae2f7190fe3cce Mon Sep 17 00:00:00 2001 From: baude Date: Sat, 20 Apr 2019 12:58:59 -0500 Subject: podman-remote prune containers enable the ability to prune containers from the remote-command. this also includes the system prune command. Signed-off-by: baude --- cmd/podman/system_prune.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd/podman/system_prune.go') diff --git a/cmd/podman/system_prune.go b/cmd/podman/system_prune.go index 2c1c5607a..37b6ef95f 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) -- cgit v1.2.3-54-g00ecf