summaryrefslogtreecommitdiff
path: root/cmd/podman/images.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-06 04:47:33 -0800
committerGitHub <noreply@github.com>2019-03-06 04:47:33 -0800
commit2dc8568368b6ef9fe3f31fd791b850205b303564 (patch)
tree805e3c65caa3abfafe62ea457af8e57f29eb0e52 /cmd/podman/images.go
parent40f78439459d0899de8643661b8e996a1e2460d6 (diff)
parenta8d6d7dce7a756f058bb61e9268084c9427fc29e (diff)
downloadpodman-2dc8568368b6ef9fe3f31fd791b850205b303564.tar.gz
podman-2dc8568368b6ef9fe3f31fd791b850205b303564.tar.bz2
podman-2dc8568368b6ef9fe3f31fd791b850205b303564.zip
Merge pull request #2430 from QiWang19/issfiltet
Support filter image by reference to the image name
Diffstat (limited to 'cmd/podman/images.go')
-rw-r--r--cmd/podman/images.go3
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])
}