Red Hat Bugzilla – Bug 1277572
[RFE] Docker search is unable to search images in an Atomic OpenShift Registry.
Last modified: 2018-03-12 09:54:36 EDT
Description of problem:
Docker search does not return the contents of the internal docker registry.
Version-Release number of selected component (if applicable):
$ oc version
$ sudo docker version
Client version: 1.7.1
Client API version: 1.19
Package Version (client): docker-1.7.1-115.el7.x86_64
Go version (client): go1.4.2
Git commit (client): 446ad9b/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Package Version (server): docker-1.7.1-115.el7.x86_64
Go version (server): go1.4.2
Git commit (server): 446ad9b/1.7.1
OS/Arch (server): linux/amd64
These are the versions for both the customer's environment as well as my test environment.
Steps to Reproduce:
1. vim /etc/sysconfig/docker
2. systemctl restart docker
3. oc login -u eric
4. oc new-project test
5. oc whoami -t
6. docker login -u eric -e email@example.com -p <token> 10.1.1.2:5000
7. docker pull registry.access.redhat.com/openshift3/ose-haproxy-router
8. docker tag registry.access.redhat.com/openshift3/ose-haproxy-router
9. docker push 10.1.1.2:5000/test/ose-haproxy-router
10. docker search test
11. docker search test/ose-haproxy-router
12. docker search ose-haproxy-router
Error response from daemon: invalid registry endpoint https://10.1.1.2/v0/: unable to ping registry endpoint https://10.1.1.2/v0/
v2 ping attempt failed with error: Get https://10.1.1.2/v2/: dial tcp 10.1.1.2:443: connection refused
v1 ping attempt failed with error: Get https://10.1.1.2/v1/_ping: dial tcp 10.1.1.2:443: connection refused. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 10.1.1.2` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/10.1.1.2/ca.crt
The image stored in the internal registry.
Trello card was created:
This bug should be renamed.
docker search does not work with the v2 registry which is implemented in OpenShift.
Docker search cli
Docker distribution v2 registry does not have these api endpoints
Actual results would be
Error response from daemon: Unexpected status code 404
This bug has been identified as a dated (created more than 3 months ago) bug.
This bug has been triaged (has a trello card linked to it), or reviewed by Engineering/PM and has been put into the product backlog,
however this bug has not been slated for a currently planned release (3.9, 3.10 or 3.11), which cover our releases for the rest of the calendar year.
As a result of this bugs age, state on the current roadmap and PM Score (being below 70), this bug is being Closed - Differed,
as it is currently not part of the products immediate priorities.
Please see: https://docs.google.com/document/d/1zdqF4rB3ea8GmVIZ7qWCVYUaQ7-EexUrQEF0MTwdDkw/edit for more details.