diff options
author | baude <bbaude@redhat.com> | 2019-01-14 14:48:50 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-01-14 15:40:33 -0600 |
commit | 1ffb0fc2d1d0e1acb43791591ebf2225a460df6d (patch) | |
tree | 8b6fdac3a9e443cb9972797e821c33b6ecb7cdde /libpod/adapter/runtime_remote.go | |
parent | 6301f6a0a9e3989ecdf59fd5395d06c44f8bac14 (diff) | |
download | podman-1ffb0fc2d1d0e1acb43791591ebf2225a460df6d.tar.gz podman-1ffb0fc2d1d0e1acb43791591ebf2225a460df6d.tar.bz2 podman-1ffb0fc2d1d0e1acb43791591ebf2225a460df6d.zip |
podman remote client -- add rmi
allow the podman remote client to delete images
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/adapter/runtime_remote.go')
-rw-r--r-- | libpod/adapter/runtime_remote.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/adapter/runtime_remote.go b/libpod/adapter/runtime_remote.go index 3eb53e4af..bb00350e0 100644 --- a/libpod/adapter/runtime_remote.go +++ b/libpod/adapter/runtime_remote.go @@ -216,3 +216,8 @@ func (ci *ContainerImage) TagImage(tag string) error { func (r RemoteRuntime) RemoveImage(force bool) error { return nil } + +// RemoveImage calls varlink to remove an image +func (r *LocalRuntime) RemoveImage(ctx context.Context, img *ContainerImage, force bool) (string, error) { + return iopodman.RemoveImage().Call(r.Conn, img.InputName, force) +} |