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

南楼画角 提交于 2020-05-26 05:13:13

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/45727200/how-to-allow-image-pull-from-one-project-to-another-in-openshift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!