Why is docker unable to push to a local repository, failing with 'Error: Invalid registry endpoint'?
Issue
- docker is not able to push images to local certificate with the following error :
# docker push localhost:5000/rhel6
2014/12/05 20:59:32 Error: Invalid registry endpoint : Get : EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry localhost:5000` 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/localhost:5000/ca.crt
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.