diff options
author | baude <bbaude@redhat.com> | 2019-01-22 09:17:34 -0600 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-02-08 15:02:28 -0500 |
commit | 431459caf946c1645da31b4fc6c953ad77f9bc85 (patch) | |
tree | 77ecef4eff5b8e4252a4bbc5f70a56bfa4882958 /API.md | |
parent | 28f5d25e8dabb6647699c2ccab8621cefac37d3b (diff) | |
download | podman-431459caf946c1645da31b4fc6c953ad77f9bc85.tar.gz podman-431459caf946c1645da31b4fc6c953ad77f9bc85.tar.bz2 podman-431459caf946c1645da31b4fc6c953ad77f9bc85.zip |
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 <bbaude@redhat.com>
MH: Removed dependence on remote-client adapter work to limit scale of changes
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'API.md')
-rwxr-xr-x | API.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ### <a name="ImagesPrune"></a>func ImagesPrune <div style="background-color: #E8E8E8; padding: 15px; margin: 10px; border-radius: 10px;"> -method ImagesPrune() [[]string](#[]string)</div> +method ImagesPrune(all: [bool](https://godoc.org/builtin#bool)) [[]string](#[]string)</div> ImagesPrune removes all unused images from the local store. Upon successful pruning, the IDs of the removed images are returned. ### <a name="ImportImage"></a>func ImportImage |