我创建了一个项目testing1,我在其中发布了docker图像。
现在,我想testing2用我推入的相同图像创建类似的另一个项目testing1。我不想再发布了。
我创建了一个项目testing1,我在其中发布了docker图像。
现在,我想testing2用我推入的相同图像创建类似的另一个项目testing1。我不想再发布了。
登录到您的 openshift 命令行并运行命令:
oc policy add-role-to-user \
system:image-puller system:serviceaccount:testing2:default \
--namespace=testing1
或者
oc policy add-role-to-user \
system:image-puller system:serviceaccount:testing2:default \
-n testing1
您的项目testing2将能够从testing1您的 openshift 中的项目访问图像。
有关更多信息,请参阅openshift 文档