From 7459c48863acea8453e0800124006a90ca82f646 Mon Sep 17 00:00:00 2001 From: baude Date: Thu, 10 Jan 2019 14:39:39 -0600 Subject: Add varlink support for prune Add the ability to prune unused images using the varlink API. Signed-off-by: baude --- API.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'API.md') diff --git a/API.md b/API.md index 3722c2864..0cbdffea4 100755 --- a/API.md +++ b/API.md @@ -57,6 +57,8 @@ 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 ImportImage(source: string, reference: string, message: string, changes: []string) string](#ImportImage) [func InspectContainer(name: string) string](#InspectContainer) @@ -543,6 +545,12 @@ $ varlink call -m unix:/run/podman/io.podman/io.podman.ImageExists '{"name": "im "exists": 1 } ~~~ +### func ImagesPrune +
+ +method ImagesPrune() [[]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