一、创建push权限,添加registry
oc create serviceaccount registry -n default
oc adm policy add-scc-to-user privileged system:serviceaccount:default:registry
二、添加admin登陆授权
admin为集群管理员账号;
oc adm policy add-role-to-user system:registry admin
oc adm policy add-role-to-user admin admin -n openshift
oc adm policy add-role-to-user system:image-builder admin
oc adm policy add-role-to-user system:image-puller system:anonymous -n openshift
三、登陆openshift 项目
先登录openshift控制台,查看openshift仓库地址:docker-registry.default.svc:5000
openshift项目比较特殊,ope