[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

How to create application with image from internal registry



I have an itegrated docker registry on my OpenShift master. Now I want to create an application with an image which is stored in the registry.
oc get services:
docker-registry       172.30.237.210   <none>        5000/TCP   docker-registry=default        

It's working fine, I can access the container and I can see the images which are created (from s2i).
I always read you can access your registry from the IP of the service:
So I thought this should work
[root ip-10-0-0-104 centos]# docker pull 172.30.237.210:5000/s2i/test
Trying to pull repository 172.30.237.210:5000/s2i/test ... not found
Error: image s2i/test:latest not found

I'm not able to ping 172.30.237.210, I can ping the IP of the pod (10.1.2.6) and I tried:

[root ip-10-0-0-104 centos]# docker pull 10.1.2.6:5000/s2i/test
Error response from daemon: invalid registry endpoint https://10.1.2.6:5000/v0/: unable to ping registry endpoint https://10.1.2.6:5000/v0/
v2 ping attempt failed with error: Get https://10.1.2.6:5000/v2/: tls: oversized record received with length 20527
 v1 ping attempt failed with error: Get https://10.1.2.6:5000/v1/_ping: tls: oversized record received with length 20527. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 10.1.2.6: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/10.1.2.6:5000/ca.crt

But this is not the right way. Why am I unable to ping the service above my registry? What am I doing wrong?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]