summaryrefslogtreecommitdiff
path: root/cmd/podman/system_prune.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-04-20 12:58:59 -0500
committerbaude <bbaude@redhat.com>2019-04-26 10:15:09 -0500
commit2e800d63aa388bb248c97ea24fae2f7190fe3cce (patch)
treea802665cf02289f454e79f06a770e0b9ec54283d /cmd/podman/system_prune.go
parent135c8bef223d32f553659cbdfd5eb99f948a6c84 (diff)
downloadpodman-2e800d63aa388bb248c97ea24fae2f7190fe3cce.tar.gz
podman-2e800d63aa388bb248c97ea24fae2f7190fe3cce.tar.bz2
podman-2e800d63aa388bb248c97ea24fae2f7190fe3cce.zip
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 <bbaude@redhat.com>
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 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)