Skip to content

Running Openshift v3 container with a specific user id

Frantisek Hallo edited this page Apr 29, 2018 · 4 revisions

Grant Service account of your project to use the anyuid

oadm policy add-scc-to-user anyuid system:serviceaccount:myproject:default oadm policy add-scc-to-group anyuid system:serviceaccount:myproject:default

prior it is prerequisite to be logged in as the admin account to change Openshift SSC (Security Context Constrains) -

possibly with this oc cli tools command oc login -u system:admin -n default, then following adjusted for cli oc adm policy add-scc-to-user anyuid -z default -n projectname

Clone this wiki locally