gpt4 book ai didi

docker - 如何在 openshift 中允许将图像从一个项目拉到另一个项目?

转载 作者:行者123 更新时间:2023-12-02 17:58:11 24 4
gpt4 key购买 nike

我创建了一个项目 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 Documentation

关于docker - 如何在 openshift 中允许将图像从一个项目拉到另一个项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45727200/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com