From 3b9046a170119c9d3e2975f03587776842c126ec Mon Sep 17 00:00:00 2001 From: umohnani8 Date: Wed, 27 Jun 2018 13:37:56 -0400 Subject: Remove the --registry flag from podman search Instead of setting the --registry flag to search a single registry, prefix the registry before the image name in the input, an example is `podman search registry.fedoraproject.org/fedora` and this will search for the fedora image in only registry.fedoraproject.org. Signed-off-by: umohnani8 Closes: #1011 Approved by: rhatdan --- docs/podman-search.1.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/podman-search.1.md b/docs/podman-search.1.md index e276f67b7..00900fcec 100644 --- a/docs/podman-search.1.md +++ b/docs/podman-search.1.md @@ -15,8 +15,9 @@ podman\-search - Search a registry for an image ## DESCRIPTION **podman search** searches a registry or a list of registries for a matching image. -The user can specify which registry to search by setting the **--registry** flag, default -is the default registries set in the config file - **/etc/containers/registries.conf**. +The user can specify which registry to search by prefixing the registry in the search term +(example **registry.fedoraproject.org/fedora**), default is the registries in the +**registires.search** table in the config file - **/etc/containers/registries.conf**. The number of results can be limited using the **--limit** flag. If more than one registry is being searched, the limit will be applied to each registry. The output can be filtered using the **--filter** flag. @@ -70,10 +71,6 @@ The order of the search results is the order in which the API endpoint returns t Do not truncate the output -**--registry** - -Specific registry to search (only the given registry will be searched, not the default registries) - **--tls-verify** Require HTTPS and verify certificates when contacting registries (default: true). If explicitly set to true, @@ -104,7 +101,7 @@ docker.io docker.io/tenstartups/alpine Alpine linux base d ``` ``` -# podman search --registry registry.fedoraproject.org fedora +# podman search registry.fedoraproject.org/fedora INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED fedoraproject.org fedoraproject.org/fedora 0 fedoraproject.org fedoraproject.org/fedora-minimal 0 @@ -117,7 +114,7 @@ docker.io docker.io/library/alpine A minimal Docker image based on Alpine Li ``` ``` -# podman search --registry registry.fedoraproject.org --format "table {{.Index}} {{.Name}}" fedora +# podman search --format "table {{.Index}} {{.Name}}" registry.fedoraproject.org/fedora INDEX NAME fedoraproject.org fedoraproject.org/fedora fedoraproject.org fedoraproject.org/fedora-minimal -- cgit v1.2.3-54-g00ecf