On Thu, Mar 3, 2016 at 11:03 PM, Srinivas Naga Kotaru (skotaru) <
[email protected]> wrote:
> Am trying to create an app using an image from corporate private registry.
>
> >>>>>>>>>>
> # oc new-app --docker-image=myrepo/skotaru/ruby-22-rhel7 --name quayapp1
>
> I0303 19:55:15.769901 88132 componentresolvers.go:126] Errors occurred
> during resolution: []error{(*errors.errorString)(0xc208546d00)}
> F0303 19:55:15.770051 88132 helpers.go:96] error: no match for
> “myrepo/skotaru/ruby-22-rhel7", specify --allow-missing-images to use this
> image name.
>
> <<<<<<<<<<
>
> It is failing to create app. If I changed image type to public, am able to
> create the app.
>
> created a secret and added it to default service account.
>
> # oc secrets new-dockercfg repo-login --docker-server=myrepo
> --docker-username=skotaru --docker-password=<****> --docker-email=
> [email protected]
> # oc secrets add serviceaccount/default secrets/repo-login --for=pull
>
> Am I missing anything here? Why unable to create app if image type is
> private?
>
oc new-app now goes through the openshift internal registry to pull all
images, so the question is how to ensure the openshift registry has the
necessary credentials to access your private registry. The answer to that
is you need to create an imagestream that points to your private registry,
and includes your credentials.
Then you can invoke new-app w/ the imagestream name.
Alternatively, if you're confident you've setup your service account
credentials correctly, you can go ahead and use the
"--allow-missing-images" flag and new-app will construct the
DeploymentConfig despite not being able to confirm the image exists.
Adding Clayton in case there are more details to the registry pull-through
feature.
>
> --
> *Srinivas Kotaru*
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
--
Ben Parees | OpenShift
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users