The clusterrole system:image-pusher does NOT allow to push images.
Version
oc version
oc v3.6.173.0.49
kubernetes v1.6.1+5115d708d7
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://lb.karmalabs.local:8443
openshift v3.6.173.0.49
kubernetes v1.6.1+5115d708d7
In OCP 3.5 does not work neither.
Steps To Reproduce
-
Give a user the role system:image-pusher
oc adm policy add-cluster-role-to-user system:image-pusher "USER"
-
Log into oc with that user
oc login "USER"..
-
Get user token
token=$(oc whoami -t)
-
Log into the registry with Docker cli
docker login -u "USER" -p $token
-
Try to push an image
docker push...
Current Result
"denied: requested access to the resource is denied"
docker push myregistry.example.com/test-push/test-push:latest
The push refers to a repository [myregistry.example.com/test-push/test-push]
a11fda45870e: Mounted from test-push/test-push
denied: requested access to the resource is denied
Expected Result
The docker push command to ends with no errors ;)
The clusterrole system:image-pusher does NOT allow to push images.
Version
oc version
oc v3.6.173.0.49
kubernetes v1.6.1+5115d708d7
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://lb.karmalabs.local:8443
openshift v3.6.173.0.49
kubernetes v1.6.1+5115d708d7
In OCP 3.5 does not work neither.
Steps To Reproduce
Give a user the role system:image-pusher
oc adm policy add-cluster-role-to-user system:image-pusher "USER"
Log into oc with that user
oc login "USER"..
Get user token
token=$(oc whoami -t)
Log into the registry with Docker cli
docker login -u "USER" -p $token
Try to push an image
docker push...
Current Result
"denied: requested access to the resource is denied"
docker push myregistry.example.com/test-push/test-push:latest
The push refers to a repository [myregistry.example.com/test-push/test-push]
a11fda45870e: Mounted from test-push/test-push
denied: requested access to the resource is denied
Expected Result
The docker push command to ends with no errors ;)