mirror of
https://github.com/containers/podman.git
synced 2025-10-29 08:57:26 +08:00
--tls-verify and --authfile should work for all remote commands
These options are now fully supported in the remote API and should no longer be hidden and/or documented as non supported. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -636,6 +636,14 @@ func SearchImages(w http.ResponseWriter, r *http.Request) {
|
||||
options.Filter = *filter
|
||||
}
|
||||
|
||||
_, authfile, key, err := auth.GetCredentials(r)
|
||||
if err != nil {
|
||||
utils.Error(w, "failed to retrieve repository credentials", http.StatusBadRequest, errors.Wrapf(err, "failed to parse %q header for %s", key, r.URL.String()))
|
||||
return
|
||||
}
|
||||
defer auth.RemoveAuthfile(authfile)
|
||||
options.Authfile = authfile
|
||||
|
||||
searchResults, err := image.SearchImages(query.Term, options)
|
||||
if err != nil {
|
||||
utils.BadRequest(w, "term", query.Term, err)
|
||||
|
||||
Reference in New Issue
Block a user