Docker image on fabric8

88 views
Skip to first unread message

isha garg

unread,
May 23, 2016, 6:52:00 AM5/23/16
to fabric8, tovi...@gmail.com
Hi all,

I am creating a docker image in my local docker engine and then deploying it to openshift using

oc new-app <imagename>

Following is the output I am getting

W0523 10:15:30.289676   16593 pipeline.go:154] Could not find an image stream match for "<imagename>". Make sure that a Docker image with that tag is available on the node for the deployment to succeed.
--> Found Docker image 412a1e3 (23 seconds old) from  for "<imagename>"

    * This image will be deployed in deployment config "<imagename>"
    * Port 9000/tcp will be load balanced by service "<imagename>"
      * Other containers can access this service through the hostname "<imagename>"
    * WARNING: Image "<imagename>" runs as the 'root' user which may not be permitted by your cluster administrator

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

But as soon as i open openshift console I am getting "Image pull back off"  as status.

Can anybody tell me how to deploy the image residing on loacl docker engine to openshift/fabric8 ?


sun...@gmail.com

unread,
Jun 18, 2016, 10:35:22 PM6/18/16
to fabric8, tovi...@gmail.com
you should first pull your local image to your private registry. Then use new image address as new app name.

在 2016年5月23日星期一 UTC+8下午6:52:00,isha garg写道:

sun...@gmail.com

unread,
Jun 18, 2016, 10:36:44 PM6/18/16
to fabric8, tovi...@gmail.com
sorry,first push,not pull.


在 2016年5月23日星期一 UTC+8下午6:52:00,isha garg写道:
Hi all,
Reply all
Reply to author
Forward
0 new messages