Browse Source

Actualizo README

main
Celestino Rey 10 months ago
parent
commit
e0eb5dde2f
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      README.md

+ 8
- 0
README.md View File

@ -1,5 +1,13 @@
# Running Commands as Root in OpenShift # Running Commands as Root in OpenShift
## Opción 1
oc adm policy add-scc-to-user anyuid -z default
## Opción 2
Esta es la que usé la primera vez, pero hay que hacerlo para cada deployment. La opción 1 es una vez por proyecto.
Running commands as root in OpenShift is restricted by default due to security policies. To allow a container to run as root, you need to use the anyuid Security Context Constraints (SCC) or create a custom SCC. Here are the steps to enable running commands as root: Running commands as root in OpenShift is restricted by default due to security policies. To allow a container to run as root, you need to use the anyuid Security Context Constraints (SCC) or create a custom SCC. Here are the steps to enable running commands as root:
1. Create a Service Account: First, create a new service account in the project where you want to run the container as root. 1. Create a Service Account: First, create a new service account in the project where you want to run the container as root.


Loading…
Cancel
Save