From db094f6e15d3e63772d4346b0176cb6fc682b2fc Mon Sep 17 00:00:00 2001 From: umohnani8 Date: Thu, 14 Jun 2018 14:53:59 -0400 Subject: Add --all,-a flag to podman images podman images will not show intermediate images by default. To view all images, including intermediate images created during a build, use the --all flag. Signed-off-by: umohnani8 Closes: #947 Approved by: rhatdan --- libpod/runtime.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libpod') diff --git a/libpod/runtime.go b/libpod/runtime.go index 5d4b895cb..2584c091d 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -666,3 +666,8 @@ func SaveDefaultConfig(path string) error { func (r *Runtime) ImageRuntime() *image.Runtime { return r.imageRuntime } + +// GetLayers returns the layers available in the store +func (r *Runtime) GetLayers() ([]storage.Layer, error) { + return r.store.Layers() +} -- cgit v1.2.3-54-g00ecf