diff options
author | umohnani8 <umohnani@redhat.com> | 2018-06-14 14:53:59 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-18 14:41:51 +0000 |
commit | db094f6e15d3e63772d4346b0176cb6fc682b2fc (patch) | |
tree | a48a5eff164c91be48919e436eb3a3f9c58b96b8 /libpod | |
parent | 4d3db1b4a9ec1a1a2aa74e3da0102b6017f8a328 (diff) | |
download | podman-db094f6e15d3e63772d4346b0176cb6fc682b2fc.tar.gz podman-db094f6e15d3e63772d4346b0176cb6fc682b2fc.tar.bz2 podman-db094f6e15d3e63772d4346b0176cb6fc682b2fc.zip |
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 <umohnani@redhat.com>
Closes: #947
Approved by: rhatdan
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/runtime.go | 5 |
1 files changed, 5 insertions, 0 deletions
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() +} |