diff options
author | Qi Wang <qiwan@redhat.com> | 2019-02-25 10:09:51 -0500 |
---|---|---|
committer | Qi Wang <qiwan@redhat.com> | 2019-03-04 20:39:47 -0500 |
commit | a8d6d7dce7a756f058bb61e9268084c9427fc29e (patch) | |
tree | 406a097ccb4aba1a31afb72b74de572ca39e43fa /cmd/podman/images.go | |
parent | 61842031131029351c2b6145b339cd4a350372e1 (diff) | |
download | podman-a8d6d7dce7a756f058bb61e9268084c9427fc29e.tar.gz podman-a8d6d7dce7a756f058bb61e9268084c9427fc29e.tar.bz2 podman-a8d6d7dce7a756f058bb61e9268084c9427fc29e.zip |
Support filter image by reference to the repo name
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'cmd/podman/images.go')
-rw-r--r-- | cmd/podman/images.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/images.go b/cmd/podman/images.go index 26e51bef7..a4f2e5e10 100644 --- a/cmd/podman/images.go +++ b/cmd/podman/images.go @@ -375,6 +375,9 @@ func CreateFilterFuncs(ctx context.Context, r *adapter.LocalRuntime, filters []s case "label": labelFilter := strings.Join(splitFilter[1:], "=") filterFuncs = append(filterFuncs, imagefilters.LabelFilter(ctx, labelFilter)) + case "reference": + referenceFilter := strings.Join(splitFilter[1:], "=") + filterFuncs = append(filterFuncs, imagefilters.ReferenceFilter(ctx, referenceFilter)) default: return nil, errors.Errorf("invalid filter %s ", splitFilter[0]) } |