mirror of
https://github.com/containers/podman.git
synced 2026-03-18 22:57:36 -04:00
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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user