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

Re: pull image from external registries

Hi Akram,
Hi Clayton,

Thanks four your inputs. I was going through openshift docs and it says we can deploy applications from external or third party registries too.

I have origin v3 server running, and I dont have any imagestream, I want openshift to create one for me when I use "new-app".

To create app from private registry I am using :

oc new-app  myregistry:5001/openshiftapp:latest --insecure-registry=true

But it doesnt create any successful pod. Below is the output of "oc get pods"

NAME                 READY     STATUS             RESTARTS   AGE
openshift-1-deploy   1/1       Running            0          9m
openshift-1-zy91l    0/1       ImagePullBackOff   0          9m

In log file is gives:

   4132 factory.go:49] error checking for V2 registry at https://myregistry:5001/v2/: Get https://myregistry:5001/v2/: x509: cannot validate certificate for myregistry because it doesn't contain any IP SANs

Note: I have already already added --insecure-registry in "DOKER_OPTS" and restarted docker where node is running and I am also able to pull images from private registry using docker pull, hence this seems to me openshift related issue.

Could you please help me with this?

Thanks in advance!

On Mon, Dec 7, 2015 at 10:36 PM, Akram Ben Aissi <akram benaissi gmail com> wrote:

you must use the following option in your ImageStream definition:
openshift.io/image.insecureRepository: "true"

like here:

And indeed, that does not bring authentication support. But if your issue is only due to certificate signing, it should be a way to solve it.


On 7 December 2015 at 17:23, priyanka Gupta <priyanka4openshift gmail com> wrote:
hello , is there a way to import images from private external docker registry using "oc import-image" command.

This works fine with docker hub images, but I need to pull image from external registry to openshift imagestream using "oc import-image" command.

how to set authentication to work with this?

whenever I try to run below  command: 

oc import-image myrepo:5000/mysql test/mysql

It gives below in error:

E1207 04:24:51.103594    4913 factory.go:49] error checking for V2 registry at https://myrepo:5000/v2/: Get https://myrepo:5000/v2/: x509: certificate signed by unknown authority

Thanks a lot in advance!

dev mailing list
dev lists openshift redhat com

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