Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to allow image pull from one project to another in openshift?

I have created one project testing1 in which i published docker images.

Now, i want to created similar another project testing2 with same images that i pushed in testing1. I don’t want to publish it again.

like image 209
purna ram Avatar asked Aug 17 '17 05:08

purna ram


1 Answers

Login to your openshift command line and run command:

oc policy add-role-to-user \
    system:image-puller system:serviceaccount:testing2:default \
    --namespace=testing1

OR

oc policy add-role-to-user \
    system:image-puller system:serviceaccount:testing2:default \
    -n testing1

Your project testing2 will be able to access images from project testing1 in your openshift.

For more information refer openshift Documentation

like image 79
pl_rock Avatar answered Oct 31 '22 21:10

pl_rock