pur*_*ram 2 openshift docker openshift-origin openshift-enterprise
我创建了一个testing1发布docker图像的项目。
现在,我想testing2用推入的相同图像创建另一个类似的项目testing1。我不想再次发布。
登录到您的openshift命令行并运行命令:
oc policy add-role-to-user \
system:image-puller system:serviceaccount:testing2:default \
--namespace=testing1
Run Code Online (Sandbox Code Playgroud)
要么
oc policy add-role-to-user \
system:image-puller system:serviceaccount:testing2:default \
-n testing1
Run Code Online (Sandbox Code Playgroud)
您的项目testing2将能够testing1在openshift中访问项目中的图像。
有关更多信息,请参考openshift文档
| 归档时间: |
|
| 查看次数: |
2898 次 |
| 最近记录: |