该死的anyuid
相信接触过paas的用户都遇到过 部署镜像报错没有权限问题。就是在paas环境中不建议使用root用户,但是如果一定要使用root则可以修改权限设置anyuid 来解决。 #给容器所在的项目赋权 [root@openshift-master tmp]# oc adm policy add-scc-to-user anyuid system:serviceaccount:openshift-infra:default [root@openshift-master tmp]# oc adm policy add-scc-to-user privileged system:serviceaccount:openshift-infra:default #备用,去权命令 [root@openshift-master tmp]# oc adm policy remove-scc-from-user anyuid system:serviceaccount:openshift-infra:default [root@openshift-master tmp]# oc adm policy remove-scc-from-user privileged system:serviceaccount:openshift-infra:default 来源: oschina 链接: https://my