summaryrefslogtreecommitdiff
path: root/cmd/podman/search.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-08-10 12:42:02 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-10 18:43:56 +0000
commit8b2d38ee842775fe6bbd72c166eaaceec91c2a65 (patch)
treec023cb9a070e94237d4d166a19ea4bed51dec507 /cmd/podman/search.go
parentccbaa15de15390d0fb0a19aec51c2dbeb02771c3 (diff)
downloadpodman-8b2d38ee842775fe6bbd72c166eaaceec91c2a65.tar.gz
podman-8b2d38ee842775fe6bbd72c166eaaceec91c2a65.tar.bz2
podman-8b2d38ee842775fe6bbd72c166eaaceec91c2a65.zip
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 <bbaude@redhat.com> Closes: #1253 Approved by: rhatdan
Diffstat (limited to 'cmd/podman/search.go')
-rw-r--r--cmd/podman/search.go2
1 files changed, 1 insertions, 1 deletions
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
}