diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-01-30 10:41:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-30 10:41:10 +0100 |
commit | 76019c31f535c6473e5f7d645cf42ca4477e2c33 (patch) | |
tree | e2d595054ce380b5074bf0217e0c405ded94178a /libpod/adapter | |
parent | ad5579e1d9905996612dd135467ee2ee5f62b7d3 (diff) | |
parent | 656033ca969477ed809cbed57e752f959899d4f8 (diff) | |
download | podman-76019c31f535c6473e5f7d645cf42ca4477e2c33.tar.gz podman-76019c31f535c6473e5f7d645cf42ca4477e2c33.tar.bz2 podman-76019c31f535c6473e5f7d645cf42ca4477e2c33.zip |
Merge pull request #2205 from baude/prunelikedocker
podman image prune -- implement all flag
Diffstat (limited to 'libpod/adapter')
-rw-r--r-- | libpod/adapter/runtime.go | 5 | ||||
-rw-r--r-- | libpod/adapter/runtime_remote.go | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libpod/adapter/runtime.go b/libpod/adapter/runtime.go index 1f3599082..f4961437e 100644 --- a/libpod/adapter/runtime.go +++ b/libpod/adapter/runtime.go @@ -99,3 +99,8 @@ func (r *LocalRuntime) LookupContainer(idOrName string) (*Container, error) { } return &Container{ctr}, nil } + +// PruneImages is wrapper into PruneImages within the image pkg +func (r *LocalRuntime) PruneImages(all bool) ([]string, error) { + return r.ImageRuntime().PruneImages(all) +} diff --git a/libpod/adapter/runtime_remote.go b/libpod/adapter/runtime_remote.go index 7189348bc..f184ce0a9 100644 --- a/libpod/adapter/runtime_remote.go +++ b/libpod/adapter/runtime_remote.go @@ -320,3 +320,6 @@ func (r *LocalRuntime) Config(name string) *libpod.ContainerConfig { return &data } +func (r *LocalRuntime) PruneImages(all bool) ([]string, error) { + return iopodman.ImagesPrune().Call(r.Conn, all) +} |