From 431459caf946c1645da31b4fc6c953ad77f9bc85 Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 22 Jan 2019 09:17:34 -0600 Subject: podman image prune -- implement all flag we now, by default, only prune dangling images. if --all is passed, we prune dangling images AND images that do not have an associated containers. also went ahead and enabled the podman-remote image prune side of things. Fixes: #2192 Signed-off-by: baude MH: Removed dependence on remote-client adapter work to limit scale of changes Signed-off-by: Matthew Heon --- API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'API.md') diff --git a/API.md b/API.md index 0cbdffea4..e4576850b 100755 --- a/API.md +++ b/API.md @@ -57,7 +57,7 @@ in the [API.md](https://github.com/containers/libpod/blob/master/API.md) file in [func ImageExists(name: string) int](#ImageExists) -[func ImagesPrune() []string](#ImagesPrune) +[func ImagesPrune(all: bool) []string](#ImagesPrune) [func ImportImage(source: string, reference: string, message: string, changes: []string) string](#ImportImage) @@ -548,7 +548,7 @@ $ varlink call -m unix:/run/podman/io.podman/io.podman.ImageExists '{"name": "im ### func ImagesPrune
-method ImagesPrune() [[]string](#[]string)
+method ImagesPrune(all: [bool](https://godoc.org/builtin#bool)) [[]string](#[]string) ImagesPrune removes all unused images from the local store. Upon successful pruning, the IDs of the removed images are returned. ### func ImportImage -- cgit v1.2.3-54-g00ecf