Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save hai-voquang/c6d6241a32c755e6c4200cb0a6ed3528 to your computer and use it in GitHub Desktop.

Select an option

Save hai-voquang/c6d6241a32c755e6c4200cb0a6ed3528 to your computer and use it in GitHub Desktop.
Root container execution in Openshift
oc create serviceaccount user-root
oc adm policy add-scc-to-user anyuid -z user-root
oc patch dc/myAppNeedsRoot --patch '{"spec":{"template":{"spec":{"serviceAccountName": "user-root"}}}}'
or
oc set sa dc myAppNeedsRoot user-root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment