From 8b2d38ee842775fe6bbd72c166eaaceec91c2a65 Mon Sep 17 00:00:00 2001 From: baude Date: Fri, 10 Aug 2018 12:42:02 -0500 Subject: search name should include registry When doing a podman search, the so-called NAME should be the image's fully qualified name (not index plus shortname). ``` $ sudo podman search rhel7 INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED redhat.com registry.access.redhat.com/rhel7/rhel This platform image provides a minimal runti... 0 redhat.com registry.access.redhat.com/rhel7.0 This platform image provides a minimal runti... 0 redhat.com registry.access.redhat.com/rhel7 This platform image provides a minimal runti... 0 .... ``` Resolves: #1208 Resolves: Bugz #1614710 Signed-off-by: baude Closes: #1253 Approved by: rhatdan --- cmd/podman/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/podman/search.go b/cmd/podman/search.go index b165411ee..d71432fc6 100644 --- a/cmd/podman/search.go +++ b/cmd/podman/search.go @@ -264,7 +264,7 @@ func getSearchOutput(term string, regAndSkipTLS map[string]bool, opts searchOpts if len(description) > 44 && !opts.noTrunc { description = description[:descriptionTruncLength] + "..." } - name := index + "/" + results[i].Name + name := reg + "/" + results[i].Name if index == "docker.io" && !strings.Contains(results[i].Name, "/") { name = index + "/library/" + results[i].Name } -- cgit v1.2.3-54-g00ecf