I've my OpenShift registry. It's using selfsigned certificates which are 
created for my service IP (172.30.82.xx) and my hostname (registry.dev.com)

[centos@ip-172-31-18-122 ~]$ oc new-app --insecure-registry 
registry.dev.com:5000/test2/test:7
W0315 07:38:52.206896   37667 pipeline.go:154] Could not find an image stream 
match for "registry.dev.com:5000/test2/test:7". Make sure that a Docker image 
with that tag is available on the node for the deployment to succeed.
--> Found Docker image 65262bc (4 hours old) from registry.dev.com:5000 for 
"registry.dev.com:5000/test2/test:7"

    * This image will be deployed in deployment config "test"
    * Ports 8080/tcp, 8888/tcp will be load balanced by service "test"
      * Other containers can access this service through the hostname "test"
    * WARNING: Image "test" runs as the 'root' user which may not be permitted 
by your cluster administrator

--> Creating resources with label app=test ...
    deploymentconfig "test" created
    service "test" created
--> Success
    Run 'oc status' to view your app.

--> ERROR: Failed to pull image "registry.dev.com:5000/test2/test:7": image 
pull failed for registry.dev.com:5000/test2/test:7, this may be 
because there are no credentials on this request.  details: (Error: 
image test2/test:7 not found)



$ oc new-app --insecure-registry 172.30.82.xx:5000/test2/test:7
--> Found Docker image 65262bc (4 hours old) from 172.30.82.xx:5000 for 
"172.30.82.xx:5000/test2/test:7"

    * An image stream will be created as "test:7" that will track this image
    * This image will be deployed in deployment config "test"
    * Ports 8080/tcp, 8888/tcp will be load balanced by service "test"
      * Other containers can access this service through the hostname "test"
    * WARNING: Image "test" runs as the 'root' user which may not be permitted 
by your cluster administrator

--> Creating resources with label app=test ...

--> WORKS



INFO: I defined the hostname when I was securing the registry:
oadm ca create-server-cert --signer-cert=ca.crt \
    --signer-key=ca.key --signer-serial=ca.serial.txt \
    --hostnames='registry.dev.com,172.30.xx.xx' \
    --cert=registry.crt --key=registry.keyI'm also able to perform a manual 
login and push the image.
                                          
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to