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

RE: Create app with image from own docker registry on OpenShift 3.1



I've added it + restarted docker:
INSECURE_REGISTRY='--insecure-registry ec2-xx-xx-xx-xx.xx-central-1.compute.amazonaws.com'

I'm able to perform a docker login and pull the image manually but
oc new-app ec2-xxx:5000/test/image:1 or /test/image
error: can't look up Docker image "ec2-xxx:5000/dbm/ponds-ui-nodejs:83": Internal error occurred: Get https://ec2-xxx:5000/v2/: x509: certificate signed by unknown authority
error: no match for "ec2-xxx:5000/test/image:1"


From: bparees redhat com
Date: Thu, 18 Feb 2016 09:48:32 -0500
Subject: Re: Create app with image from own docker registry on OpenShift 3.1
To: dencowboy hotmail com; users lists openshift redhat com

INSECURE_REGISTRY is needed because your registry is using a self-signed cert, whether it is secured or not.


On Thu, Feb 18, 2016 at 4:59 AM, Den Cowboy <dencowboy hotmail com> wrote:
No didn't do that. I'm using a secure registry for OpenShift. So the tag was not on insecure.


From: bparees redhat com
Date: Wed, 17 Feb 2016 10:53:48 -0500
Subject: Re: Create app with image from own docker registry on OpenShift 3.1
To: dencowboy hotmail com
CC: users lists openshift redhat com


is ec2-xxx listed as an insecure registry in your docker daemon's configuration?

/etc/sysconfig/docker
INSECURE_REGISTRY='--insecure-registry ec2-xxxx'

I believe that is needed for docker to communicate with registries that use self-signed certs.

(you'll need to restart the docker daemon after adding that setting)



On Wed, Feb 17, 2016 at 8:15 AM, Den Cowboy <dencowboy hotmail com> wrote:
I have my own docker registry secured with a selfsigned certificate. On other servers, I'm able to login on the registry and pull/push images from it. So that seems to work fine.
But when I want to create an app from the image using OpenShift it does not seem te work:
oc new-app ec2-xxx:5000/test/image1
error: can't look up Docker image "ec2-xx/test/image1": Internal error occurred: Get https://ec2-xxx:5000/v2/: x509: certificate signed by unknown authority
error: no match for "ec2-xxx:5000/test/image1"
What could be the issue? I'm able to login in the registry and pull the image manually.

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users




--
Ben Parees | OpenShift




--
Ben Parees | OpenShift


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