Using _catalog in an API call to the OpenShift Container Registry throws a 400 error
Issue
-
Trying to access the container registry catalog api to list all the docker images in the OpenShift internal registry throws an HTTP 400 error:
# curl -kv -u username https://registry.openshift.example.com:5000/v2/_catalog Enter host password for user 'username': [...] < HTTP/1.1 400 Bad Request < Docker-Distribution-Api-Version: registry/2.0 < Date: Mon, 18 Sep 2017 20:54:19 GMT < Content-Length: 0 < Content-Type: text/plain; charset=utf-8 < * Connection #0 to host registry.openshift.example.com left intact
Environment
- OpenShift Container Platform (OCP) 3.6, 3.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.